summaryrefslogtreecommitdiff
path: root/java/systests/src/main
Commit message (Collapse)AuthorAgeFilesLines
* QPID-714 : (Patch from Aidan Skinner) Issue with competing, ↵Robert Godfrey2007-12-201-0/+151
| | | | | | | | transactional/client-ack consumers Ack each individual message on commit, not use multiple acks git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@606016 13f79535-47bb-0310-9956-ffa450edef68
* DUPS_OK mode set to be same as AUTO_ACK, fixed broken dups ok test.Rupert Smith2007-12-171-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@604928 13f79535-47bb-0310-9956-ffa450edef68
* QPID-707 : Added new test to check message count on broker as messages are ↵Martin Ritchie2007-12-142-13/+148
| | | | | | | | consumed to ensure that an ack is sent at 5000 mgs. Added acks on message consumer closure. Augmented VMTestCase to have helper methods for accessing broker statistics. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@604151 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 598371-598586 via svnmerge from Rupert Smith2007-11-282-0/+42
| | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1 ........ r598371 | ritchiem | 2007-11-26 18:17:12 +0000 (Mon, 26 Nov 2007) | 1 line Qpid-559 : OSGi Patch Provided by Aidan Skinner ........ r598572 | ritchiem | 2007-11-27 09:44:28 +0000 (Tue, 27 Nov 2007) | 1 line Add Target to ignores list. ........ r598586 | rupertlssmith | 2007-11-27 10:51:29 +0000 (Tue, 27 Nov 2007) | 1 line Now outputs test results in xml format to the surefire reports directory. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@599036 13f79535-47bb-0310-9956-ffa450edef68
* QPID-679 : Patch provided by Aidan Skinner and additional from odd problems ↵Martin Ritchie2007-11-281-0/+222
| | | | | | | | | | | | | | | | | | | | during test runs. AMQChannel - Catch and log AMQException occuring when requeue()-ing. Previously exceptions wouldn't be caught at all. The requeue() is called during closure so there is nothing we can do protocol wise on error other than log the issue and continue with any other shutdown that is needed. AMQMinaProtocolSession & AMQPFastProtocolHandler . Additions to catch and log AMQExceptions. Changes to AMQMinaProtocolSession were done to ignore all input on a closing session other than the close-ok. Previously only Protocol frames were ignored this resulted in Content*Body-s still being processed. Additional checks were made for the MessageStoreClosedException to log and continue. As said else were we need to seperate protocol exceptoions(AMQException) from internal code exception handling. Further All AMQExceptions occuring in the frameReceived method are now caught and logged. Allowing them to propogate higher will only result in thread death. AMQPFastProtocolHandler Caught AMQExceptions occuring whilst closing the session. Again allowing these to continue will result in thread death. There is not a lot that can be done other than log the problem as the session is already closed by this point. Prevented the stacktrace associated with a session exception being printed in the exceptionCaught method when the problem was an IO Exception. This doesn't add anything useful and only adds to the log file sizes. ApplicationRegistry - Added removeAll option which ensures that all ARs are correctly purged so that we can attempt to clean up between Unit Tests. MemoryMessageStore - This was causing us real problems during the failover testing. Similar checks should probably be made to any other Message Store Impl. The issue was that when shutting down the broker the MS.close() method is called this sets all the storage to null. However, there may still be message processing going on as the close() does not attempt to stop connection processing. Hence we now check to see if the Store is close throwing a MSClosedException if required. This prevents NPEs that have been seen during Unit failover testing. In fact the close() is called as a request to shutdown the ApplicationRegistry, but this only occurs from tests and broker shutdown, no attempt to unbind or prevent further connections during this period is yet done. CLIENT CHANGES AMQConnection - Added method to check if failover is in progress. AMQClient - Upgraded acknowledge() exception to JMSException for errors due to failover. Also , added call to update consumers as a result of failover. BasicMessageConsumer - Changes to acquireReceiving to take in to consideration blocking for failover to occur. wrt receiveNoWait.. which previously blocked for failover to complete... not exactly noWait. acknowledge will now TransportConnection - Update to ensure all inVM brokers are correctly killed. FailoverTest - QPID-679 - Finder of all the above problems. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598834 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 598106-598232,598234-598286,598288-598323,598325-598361 via ↵Martin Ritchie2007-11-261-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1 ........ r598337 | ritchiem | 2007-11-26 16:33:06 +0000 (Mon, 26 Nov 2007) | 1 line Last commit accidentally caught my failover change that wasn't complete. ........ r598352 | rupertlssmith | 2007-11-26 17:17:48 +0000 (Mon, 26 Nov 2007) | 1 line May have broken build with tktest plugin mojo, commented out until fixed. ........ r598357 | rupertlssmith | 2007-11-26 17:33:14 +0000 (Mon, 26 Nov 2007) | 1 line Fixed broken plugin. ........ r598360 | ritchiem | 2007-11-26 17:49:05 +0000 (Mon, 26 Nov 2007) | 1 line QPID-690 : Missing Test and code update. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598363 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 597919-598104,598106-598323 via svnmerge from Martin Ritchie2007-11-2633-473/+2269
| | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1 ........ r598233 | rupertlssmith | 2007-11-26 11:38:27 +0000 (Mon, 26 Nov 2007) | 1 line Updated test framework to seperate JMS and AMQP specific test cases. Added configurable test decorators so that in vm connection can be injected at run time. ........ r598287 | rupertlssmith | 2007-11-26 14:28:46 +0000 (Mon, 26 Nov 2007) | 1 line Added tk test runner invocation to run framework tests on every build. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598328 13f79535-47bb-0310-9956-ffa450edef68
* QPID-662 Transactional state not correctly reported after fail over. We now ↵Martin Ritchie2007-11-061-0/+12
| | | | | | | | record if we have sent any messages from here we can check if we have failed over and so have lost messages from the transaction making it invalid. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592388 13f79535-47bb-0310-9956-ffa450edef68
* QPID-662 Transactional state not correctly reported after fail over. We now ↵Martin Ritchie2007-11-061-1/+1
| | | | | | | | record if we have sent any messages from here we can check if we have failed over and so have lost messages from the transaction making it invalid.- Forgot to remove a println. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592385 13f79535-47bb-0310-9956-ffa450edef68
* QPID-662 Transactional state not correctly reported after fail over. We now ↵Martin Ritchie2007-11-061-16/+237
| | | | | | | | record if we have sent any messages from here we can check if we have failed over and so have lost messages from the transaction making it invalid. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592374 13f79535-47bb-0310-9956-ffa450edef68
* QPID-653 : Updated timeoutsRobert Godfrey2007-10-191-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@586344 13f79535-47bb-0310-9956-ffa450edef68
* QPID-645 : TxnBuffer should rethrow exceptions encountered on commitRobert Godfrey2007-10-171-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@585642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-632 ImmediateMessageTest may not have sufficient time to see the ↵Martin Ritchie2007-10-111-3/+3
| | | | | | exception. Performing the close before checking for exceptions should give it this time. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583776 13f79535-47bb-0310-9956-ffa450edef68
* QPID-632 : The lack of AMQNoConsumersException on the connection may be due ↵Martin Ritchie2007-10-101-8/+8
| | | | | | to the exception list in ExceptionMonitor not being thread safe. Synchronized method calls to ensure atomic access. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583548 13f79535-47bb-0310-9956-ffa450edef68
* Update to Error message to contain the thrown exception message.Martin Ritchie2007-10-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583085 13f79535-47bb-0310-9956-ffa450edef68
* Qpid-623 : When only selectors are used on a queue the main _messages queue ↵Martin Ritchie2007-10-051-0/+214
| | | | | | causes a leak. Here is a new test provided by Aidan Skinner and a simple fix that will prevent OOME when only selectors are connected to the Queue. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@582263 13f79535-47bb-0310-9956-ffa450edef68
* QPID-617 : Forgot to commit Test case to validate fix.Martin Ritchie2007-10-051-0/+188
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@582198 13f79535-47bb-0310-9956-ffa450edef68
* QPID-615, Added patched version of MINAs VM Pipe cleanup thread. Will ↵Rupert Smith2007-10-021-0/+125
| | | | | | replace once bug fix is in newer version of MINA. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@581293 13f79535-47bb-0310-9956-ffa450edef68
* QPID-618, QPID-619, patch supplied by Aidan Skinner, test timeout increased.Rupert Smith2007-10-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@580985 13f79535-47bb-0310-9956-ffa450edef68
* Updated for changes to the junit-toolkit, new xml test listener moved into ↵Rupert Smith2007-09-281-102/+1
| | | | | | the toolkit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@580351 13f79535-47bb-0310-9956-ffa450edef68
* Added test cases 4 and 5, from the updated interop spec.Rupert Smith2007-09-271-7/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@580066 13f79535-47bb-0310-9956-ffa450edef68
* QPID-610 : Fix for ManagementConcole NO_ACK & Msg Expire leaks. Updated ↵Martin Ritchie2007-09-261-18/+42
| | | | | | | | | | AMQQueueMBeanTest to verify the contents of the MessageStore after clearing. All the MC features only dequeued the message and didn't correctly decrementReference. The MessageReturnTest was failing due to the TimeToLive test causing messages to be left on the store. The expired messages were not having the reference decremented. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@579574 13f79535-47bb-0310-9956-ffa450edef68
* QPID-610 : Fix for Returned Messages leak. Augmented ↵Martin Ritchie2007-09-252-2/+315
| | | | | | | | TestableMemoryMessageStore to allow it to query the MemoryMessageStore in use by the broker. New MessageReturnTest to verify no leak after messages have been returned. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@579147 13f79535-47bb-0310-9956-ffa450edef68
* QPID-531 : NO_ACK fix. Added a decrementReference in SubscriptionImpl after ↵Martin Ritchie2007-09-141-0/+19
| | | | | | | | | the message has been sent. This was previously done inside dequeueMessage() but when the reference counting was reworked earlier in the year it was moved out of that method.. but all the uses of dequeueMessage were not evaluated. The existing AckTest didon't detect this error as it only occurs with persistent messages which the client sends by default. The AckTest however only tests transient messages. Updated Test for NO_ACK raised JIRA QPID-602 to cover updating the rest of the AckTests (Updated log to show correct JIRA QPID-531 not QPID-573) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@575811 13f79535-47bb-0310-9956-ffa450edef68
* QPID-590 : Provide test case and resolution to prevent deadlock occurring on ↵Martin Ritchie2007-09-111-0/+211
| | | | | | the client when two threads work on the AMQSession object. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@574555 13f79535-47bb-0310-9956-ffa450edef68
* Added distributed clock synchronization using UDP datagrams.Rupert Smith2007-08-1612-50/+502
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@566644 13f79535-47bb-0310-9956-ffa450edef68
* Added UDP based clock syncher to test suite.Rupert Smith2007-08-145-2/+551
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@565703 13f79535-47bb-0310-9956-ffa450edef68
* Changes made to performance test parameters.Rupert Smith2007-08-071-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@563435 13f79535-47bb-0310-9956-ffa450edef68
* Extensive refactoring of the distributed test framework.Rupert Smith2007-08-0132-545/+1981
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@561855 13f79535-47bb-0310-9956-ffa450edef68
* Refactored packaging of test framework.Rupert Smith2007-07-2522-132/+58
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@559458 13f79535-47bb-0310-9956-ffa450edef68
* Removed redundant method.Rupert Smith2007-07-251-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@559456 13f79535-47bb-0310-9956-ffa450edef68
* Added to comments.Rupert Smith2007-07-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@559455 13f79535-47bb-0310-9956-ffa450edef68
* Refactored interop tests into general distributed test framework. Moved ↵Rupert Smith2007-07-2528-166/+3456
| | | | | | framework under systests from integrationtests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@559419 13f79535-47bb-0310-9956-ffa450edef68
* Update fix incorrect license headers.Martin Ritchie2007-07-182-22/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@557306 13f79535-47bb-0310-9956-ffa450edef68
* updated comment to refelect property valuesMartin Ritchie2007-07-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@557281 13f79535-47bb-0310-9956-ffa450edef68
* Completed javadoc for test framework.Rupert Smith2007-07-1313-42/+133
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556024 13f79535-47bb-0310-9956-ffa450edef68
* Moved test framework into its own package and cleaned it up.Rupert Smith2007-07-1319-795/+1723
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556011 13f79535-47bb-0310-9956-ffa450edef68
* Fixed test state carrying over to mandatory message test from immediate. ↵Rupert Smith2007-07-054-33/+45
| | | | | | Also added in-vm clean up to other tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@553432 13f79535-47bb-0310-9956-ffa450edef68
* QPID-509 Mandatory messages not returned outside a transaction. They are now.Rupert Smith2007-06-263-119/+183
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@550849 13f79535-47bb-0310-9956-ffa450edef68
* Immediate and mandatory flag tests added.Rupert Smith2007-06-262-56/+437
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@550773 13f79535-47bb-0310-9956-ffa450edef68
* Added Immediate and Mandatory message tests.Rupert Smith2007-06-223-0/+1103
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@549849 13f79535-47bb-0310-9956-ffa450edef68
* Various License header updates.Martin Ritchie2007-06-184-0/+84
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@548276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-402: FailoverException falling through to client. All blocking ↵Rupert Smith2007-06-012-274/+278
| | | | | | operations now wrapped in failover support wrappers. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@543496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3 Topic Matching with testsMartin Ritchie2007-05-151-1/+1
| | | | | | | | | A simple naive approach. Similar to C++ to be included for M2. More elaborate pre-evaluated version will have to wait. Once benchmarks have been performed we can evaluate performance advantages if any of that approach. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@538240 13f79535-47bb-0310-9956-ffa450edef68
* QPID-25 TimeToLive Basic implementation. Martin Ritchie2007-05-092-0/+151
| | | | | | | | | | | | | Messages are not automatically purged rather they are checked as they are selected for delivery. If they have expired they are dequeued. AMQChannel - Update to call setExpiration on the message so the time can be adjusted if client & broker clocks are out of sync. AMQMessage - Caches the _expiration time for internal use, adjusted for broker time. This leaves message headers unchanged so receiving client can see actual value requested by producer. ConcurrentSelectorDeliveryManager - Updated to check for expired messages when getNextMessage is called. Immediate messages are NOT expired. Subscription - Added method to getChannel that this Subscription is attatched to so we can retrieve the StoreContext for dequeue-ing the message. TimeToLiveTest - Test of Time to live. Sends 50 msgs. 1 non-timed 48 1 second and 1 non-timed ensure only 2 msgs come back after 2 seconds git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536506 13f79535-47bb-0310-9956-ffa450edef68
* Moved MaxChannelsTest.java to the correct package.Martin Ritchie2007-05-091-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536498 13f79535-47bb-0310-9956-ffa450edef68
* Comments and Test changesMartin Ritchie2007-05-012-8/+12
| | | | | | | | VirtualHost Added comments HeapExhaustion - Updated to send transient messages. QpidClientConnection - Allowed specification of type of message to send. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@534117 13f79535-47bb-0310-9956-ffa450edef68
* QPID-290 - Java broker does not honor maximum number of channels thresholdMartin Ritchie2007-04-231-0/+75
| | | | | | Applied patch from Nuno Santos git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@531526 13f79535-47bb-0310-9956-ffa450edef68
* Update to system test so that the run as part of the build process as they ↵Martin Ritchie2007-04-236-14/+38
| | | | | | | | were not running. Change to AMQMessage to ensure that the TxAckTest passes. Was failing as the reference count was being changed out of the increment/decrementReference methods git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@531515 13f79535-47bb-0310-9956-ffa450edef68
* QPID-436 - topic exchange doesn't obey the mandatory flagMartin Ritchie2007-04-231-3/+137
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@531513 13f79535-47bb-0310-9956-ffa450edef68