| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
messages are received.
If there has been no message received for 5 seconds then it counts the test as failed.
Excluded AutoAck failover tests due to QPID-143
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821829 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821828 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
acknowledgement in a dirty session after failover.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821826 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
Updated AcknowldegeAfterFailoverTest to correctly cover the failure cases. Sending messages on a dirty transaction and Receiveing messagges on a dirty session.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821824 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821823 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
synchronous receive and asynchronous onMessage approaches. Also added tests that failover between acking. Currently these tests are setup to repoulate the broker between failover. However, in a clustered environment that would not be requried. Investigation is need on how best to setup failover tests in general so that clustered and non-clustered environments can be easily tested.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821822 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updates to QpidTestCase:
to allow the sending of messages that are tagged from an offset value.
to correctly commit the sent messages if the sent number does not fit within the batch window.
update to createMessage to add an INDEX int property.
update to rename ssl connectionfactory default.ssl to align with other factories. updated test-provider accordingly.
added a getTestQueue method that creates an AMQQueue using getTestQueueName to further simplify tests.
Updates to FailoverBaseCase
removed setFailingPort, failBroker now takes the port to fail, this allows both brokers to be failed more easily.
Update to ensure that all subclasses get a failover connection url, through the getConnection(), some were not. Fixed by overriding getConnectionFactory() call.
Fixed second broker work directory to write to defined QPID_WORK rather than java.io.tmpdir. If QPID_WORK is not set then tests will fall back to java.io.tmpdir
getFailingPort now returns the correct value if you are running InVM (2)or externally(test.alt.port)
Updated tests that used failBroker to use failBroker(getFailingPort()) so tests will work InVM and externally.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821821 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
during tearDown
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821820 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
exception during super.tearDown. This may have been the cause of CI stuck brokers
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821819 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
it will enabled full DEBUG logging. If the logging needs tweeked for the test the test must remember the previous configuratio and restore it after the test run. Here I can see no reason to enable DEBUG logging.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821818 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
and the old one has not been consumed
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821817 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821816 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821815 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820932 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
0-8/0-9 client
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820739 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
subdirectory of the first instead of /tmp, allowing common cleanBroker() execution via QpidTestCase. Update QueueBrowserAutoAckTest to use the getTestQueueName() helper method instead of creating its own time-based queue names
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820685 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
directly. This will result in all subsequent tests having WARN logging. Added new setLoggerLevel method to QTC to allow the setting of a Log4j logger level for a given test run. Reverting the changes when the test is complete
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820606 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
using the currently defined System value.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820573 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
|
|
| |
the Test run or the External Broker or both.
renamed _setProperties as it was confusing. Now two maps are used _propertiesSetForTestOnly and _propertiesSetForBroker calls to setSystemProperty puts the value in to both maps so test VM and the external VM will have a system property defined to have that value. If a test is configured to run against an external broker then two new methods help control how each vm is setup. setTestClientSystemProperty is used to set a value in the TestVM that is not copied to any external VM. setBrokerOnlySystemProperty can now be used to set a System property value in the external broker VM only.
As before all values are reverted at the end of the test run.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820323 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820322 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
SelectorTest so that it uses more of QTC functionality and stops creating random queue names. The init() methods could be totally removed with a bit more work. Updated test() to be testOnMessage() to better identify what test was supposed to be using onMessage() previously they all were! JMSMessageID test should now pass again on CPP profile.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820321 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
| |
check is done before any attempt to retrieve the getLastSeenNode(). This and the commits for QPID-1871,QPID-2116 are tested by RollbackOrderTest that now can be enabled for the Java profile.
Additional changes were done to SAMQQ to improve readability and add some debug loggging. Performance testing should be done to identify any penality for this additional logging.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820320 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
look at.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820319 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820318 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820317 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
Subscription deliveries that the Channel has been suspended. This is down by taking out the subcription sendLock on each subscription on this Channel.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820316 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
process. Update BrokerStartupTest to ensure that these values are set to the default info as the test looks for the existence of DEBUG messages as a sign of failure.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820315 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820314 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
the same way
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819975 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
Updated ApplicationRegistries to pass the instanceID to the BrokerActor in an attempt to better identify what brokers are shutting down during our test runs.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819605 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
in the same way as 0-8/9
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819604 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
that appears during Java broker test runs
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819594 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819593 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819592 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
| |
deadlock issue with 0-10 rollback method and onMessage usage. Moved 0-10 rollback strategy to the abstract AMQSession and updated 0-8 to use that approach.
0-8 Still excluded from test runs as the race condition is not that the dispatcher would hold a message and reject after the TxRollback. The problem is the Java Broker sends a message out after the FlowOk message so the Dispatcher then sits on it, see QPID-2116. This exact problem was hidden due to the way the Dispatcher is stopped. This problem has not been addressed. The request to stop the dispatcher can only actually stop the dispatcher whilst it is in the middle of processing a message. The stop needs to interrupt the _queue.take() and hold the dispatcher AFTER the processing of any message that it needs to do: see QPID-2117.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@819590 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
execute the 'broker.clean' command after every test method is run
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@818840 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
| |
I had missed this bit when I committed last night.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817867 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
| |
Added a check in the getNextBrokerDetails method to return null when the current broker equals the only remaining broker in the list
A test case for this will be added once I finalized the test case for the failover exchange method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817487 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
| |
I have also added a simple check for the default message priority in an existing test in JMSPropertiesTest
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817478 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
|
|
|
| |
I didn't meddle with the existing log4j.properties file present in the common module as it maybe used in the broker.
However a cursory glance at the etc directory revealed that the the broker too has a log4j.xml file.
So perhaps the log4j.properties files in the common module is not really needed.
(The settings given i the log4j.xml under the client module could be overriden by explicitly specifying a log4.xml file using -Dlog.configuration property)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817457 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
for the failover server. As a result the connection has been failing. Updated to use correct system property and added text to both default.testprofile and test-provider.properties to ensure that the changes are made in both locations, Ideally JNDI connection would use the same system property that is used by QTC for starting the broker. However I don't believe that it is currently doing that.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817295 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
| |
testRuntimeSelectorError
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816579 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
found the ready line. Added broker.stopped line to cpp.testprofile 'Exception constructed' this identifies port conflict issues. Local testing has shown that this works as expected.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816150 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815771 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815206 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
need to do it aswell.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814670 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
|
|
| |
brings it in line with qpid-run.
If QPID_PNAME is not set then it will fall back to QPID_STOP_SERVER so as to main backward compatibility.
If neither are set then it will only use -DPNAME=" as the search. Thus allowing the value to have been changed
and this script still to detect QPID processes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814545 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
| |
property -DPNAME="".
Ensured value is quoted to allow spaces in QPID_PNAME. i.e QPID_PNAME="Production Broker"
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814544 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
| |
Just check for the file name rather than the path.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813856 13f79535-47bb-0310-9956-ffa450edef68
|
| |
|
|
|
|
|
|
|
|
|
| |
before performing store.deleteQueue().
Created ModelTest to validate the change, (testDeletionDurableViaJMX).
To facility the testing, extracted JMX Operations from ManagementActorLoggingTest to a new JMXTestUtils and updated both ModelTest and MALT to use this interface.
Updated 010(cpp) and 08(Java-InVM) excludes as the CPP does not have JMX and the InVM JMX is unreliable (see QPID-2097)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813801 13f79535-47bb-0310-9956-ffa450edef68
|