summaryrefslogtreecommitdiff
path: root/qpid/java/systests/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3864: add/fix licences in the Java tree for 0.16Robert Gemmell2012-04-192-0/+40
| | | | | | | merged trunk r1327905 and r1327912, and also updated java/jca/.gitignore git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.16@1327923 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3911: Fix deadlock on concurrent invocation of MessageConsumer#close() ↵Robert Gemmell2012-04-111-0/+57
| | | | | | | | | | | | | | | | | | and Session#rollback() from consumer MessageListener This patch contains the following changes: - Add synchronization on AMSession#_messageDeliveryLock into MessageConsumer#close() in order to block until message listener in progress has completed(as required in JMS javadoc for MessageConsumer#close()). - Change the session dispatcher to stop messages delivery into consumer local message queue if the consumer in the process of closing. This eliminates the need to stop the dispatcher on rejecting pending messages for closing consumer. - Remove the synchronization on the dispatcher lock from AMQSession.Dispatcher#rejectPending and code to stop the dispatcher, as we are synchronizing on the deliveryLock now and incoming messages are not dispatched into closing consumers anymore. - Add a system test to reproduce the deadlock and verify its resolution. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> merged from trunk r1310275 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.16@1324655 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3927: add a systest which would highlight the underlying issue by ↵Robert Gemmell2012-04-041-0/+100
| | | | | | | | | failing to receive all messages present on the priority queue merged from trunk r1309155 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.16@1309388 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3867: ManagedQueueMBeanTest, fix test issue causing sporadic failure on ↵Keith Wall2012-03-011-7/+12
| | | | | | some CI instances git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295574 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3605: update test comments to reflect change in broker behaviour after ↵Robert Gemmell2012-03-011-2/+4
| | | | | | the changes in this JIRA git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295348 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3605 : renamed method, corrected brace style for ifs, added tests (per ↵Robert Godfrey2012-02-291-1/+64
| | | | | | Robbies review comments) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295341 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2418: fix up issues and enable forgotten test for 0-10 persistent ↵Robert Gemmell2012-02-291-11/+8
| | | | | | broker profiles git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3867: Address review comment from Robbie GemmellKeith Wall2012-02-281-2/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294895 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3605 : [Java Broker] Durable subscriber with no-local true receives ↵Robert Godfrey2012-02-281-4/+3
| | | | | | messages on re-connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294884 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2621 : [Java Client] Calling QueueBrowser.getEnumeration on a stopped ↵Robert Godfrey2012-02-271-0/+17
| | | | | | connection will hang git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294397 13f79535-47bb-0310-9956-ffa450edef68
* QPID-792 : [Java Client] Validate queue browser selector on client side, not ↵Robert Godfrey2012-02-272-7/+9
| | | | | | broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294194 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3774: AcknowlegdeTest should also sync after sending more ↵Keith Wall2012-02-271-7/+11
| | | | | | non-transactional messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-509 : [Java Client] Messages sent to topics should not default to mandatoryRobert Godfrey2012-02-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294144 13f79535-47bb-0310-9956-ffa450edef68
* QPID-509 : [Java Client] Messages sent to topics should not default to mandatoryRobert Godfrey2012-02-271-9/+89
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294135 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3867: AMQQueueMBean#clearQueue|moveMessages|copyMessages should be ↵Keith Wall2012-02-261-20/+219
| | | | | | | | | certain to rollback transactions in the event of exception Added finally{} block so txn will be rolled back in the event of any non-normal completion. Refactored the AMQQueue abstraction so that the caller no longer has to provide a server transaction for move and copy operations. Bolstered the system tests around copy and move JMX management operations. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1293951 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1199 : [Java Client] Can not (actually you can) append to BytesMessage ↵Robert Godfrey2012-02-231-0/+43
| | | | | | | | after send Add test from JIRA to test suite showing problem no longer occurs git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1293034 13f79535-47bb-0310-9956-ffa450edef68
* AMQP-24 : [Java Broker] Implement distributed transactions for AMQP 0-10Robert Godfrey2012-02-235-26/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292984 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3865: Remove unreliable CancelTestKeith Wall2012-02-221-101/+0
| | | | | | | | This test case is seen to fail occasionally on a slower CI box. The failure is a test issue; it uses a non-transactional producer to send the single test message, so the message may not have made it to the broker by the time the QueueBrowser is created. When the test fails, the browser sees no messages. The test won't be fixed as the test is duplicated by the better QueueBrowser*Test which uses a transactional publisher. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292207 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3728: remove uncessary restriction on checking against 'internal' brokersRobert Gemmell2012-02-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291455 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3827: FirewallConfigTests fail on FreeBSD Jenkins CI due to peer IP ↵Keith Wall2012-02-181-14/+26
| | | | | | reported as non-loopback git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1290908 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added extra logging to better understand FailoverMethodTest failure ↵Keith Wall2012-02-181-23/+18
| | | | | | on Apache Jenkins Freebsd slaves. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245926 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3840: corrected qpid-passwd and qpid-run to handle paths with spaces in ↵Keith Wall2012-02-151-2/+10
| | | | | | | | them. Modified unit test to capture stderr to aid diagnosis of failures. Applied patch from Andrew MacBean <andymacbean@gmail.com> and Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1244535 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3840: added automated tests for the Java Broker's qpid-passwd script ↵Keith Wall2012-02-151-0/+67
| | | | | | | | and Passwd class Applied patch from Andrew MacBean <andymacbean@gmail.com> and Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1244406 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3825: TransactionTimeoutTests sporadically failKeith Wall2012-02-131-2/+3
| | | | | | Increase the tolerance around the number of received alert messages to allow for running on slower CI box. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243448 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3803: increase receive() timeout on persistent runs, newest failure log ↵Robert Gemmell2012-02-131-7/+8
| | | | | | shows the consumer timed out while recieving, before the publisher completed sending all the messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243382 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3440: add test to verify issue by ensuring that the reply-to ↵Robert Gemmell2012-02-131-41/+25
| | | | | | Destination cache results in use of the same Destination objects for subsequent messages. Implement equals() and hashCode() for the generated ReplyTo class to let it function properly as an index in the hashmap to resolve the issue. Update PropertyValueTest to remember the initial reply-to destination it sets and compare it with the value returned after sending/receiving the message, rather than constituting its own test destination for comparison. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243380 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3829: use a seperate object for reference checking to stop the ↵Robert Gemmell2012-02-131-141/+30
| | | | | | | | | AMQMessage holding its underlying 0-8/0-9/0-9-1 connection/io objects in memory after they are closed. Also stops an NPE on the 0-8/0-9/0-9-1 subscriptions when evaluating no-local after store recovery. Enables NoLocalAfterRecoveryTest again, though updated to make it simpler and more reliable. This test should be removed if changes for QPID-3605 are undertaken. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243379 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3803: System tests SortedQueueTest fail ocasionally on slow machinesKeith Wall2012-02-101-31/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1242716 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3825: TransactionTimeoutTest.testProducerOpenCommit and others fails ↵Keith Wall2012-02-091-2/+8
| | | | | | | | | sporadically on slower boxes The test needs to sync() after sending the last test message in order that the test and broker start measuring the idle transaction from the same point in time. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1242399 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3819: ExhaustiveACLTests seen to timeoutKeith Wall2012-02-093-126/+127
| | | | | | | | | Backout changes to AMQStateManager made by QPID-3512 as these changes were causing the client to hang for 30 seconds after the Broker closed connection due to ACL violation. Refactored ConnectionCloseTest (now called BrokerClosesClientConnectionTest) to avoid the sporadic failure by verifying that the closed connection is reported correctly to the client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1242338 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3820: Sporadic failures from ProducerFlowControlTestKeith Wall2012-02-081-2/+2
| | | | | | | | The tests rely on a sync() to make sure the Broker has received the sent messages and has had a chance to invoke flow-control. However, a defect in tests testClientLogMessages and testSendTimeout meant that an inactive session was actually being sync'd, rather than the one used to produce the messages. This will probably explain the sporadic failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241866 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3820: ProducerFlowControlTest#testSendTimeout test fails sprodically on ↵Keith Wall2012-02-071-141/+85
| | | | | | 0-10 profiles git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3818: Replace CombinedTest and its support classes with a simpler ↵Keith Wall2012-02-076-466/+169
| | | | | | test-case. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3816: add client version to connection open loggingRobert Gemmell2012-02-061-6/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3815: update test to expose the issue, we no longer log both the ↵Robert Gemmell2012-02-061-18/+5
| | | | | | (unsupported) 0-10 and subsequent 0-9-1 connection attempts on the 0-9-1 profiles, so the test can now expect a precise number of messages on every profile git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3814: ensure the 0-10 client sends its version number during ↵Robert Gemmell2012-02-051-0/+33
| | | | | | ConnectionStart(Ok) process, align properties better across protocol versions, general tidy up of the property handling git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3813: allow configuring the default version reply to an unsupported ↵Robert Gemmell2012-02-041-7/+32
| | | | | | protocol version initiation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240644 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3793: Remove test MessageStatisticsTest.testMessagePeakRates from test ↵Robert Gemmell2012-02-041-22/+0
| | | | | | | | | suite because there is already junit test for testing peak value evaluation Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3803: allow more time on persistent runs to help prevent sporadic ↵Robert Gemmell2012-02-041-3/+9
| | | | | | | | | failures on sorted queue tests Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3781: fix system test ↵Robert Gemmell2012-02-031-2/+2
| | | | | | | | MaxDeliveryCountTest.testAsynchronousDupsOkSession by ensuring the queue depth check syncs first Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240065 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3792: fix system test ↵Robert Gemmell2012-02-031-14/+10
| | | | | | | | DurableSubscriptionTest.testDurSubAddMessageSelectorNoClose, and update others to remove unecessary syncs for 0-9 Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3800: add the ability to disable particular protocol versions ↵Robert Gemmell2012-02-021-0/+122
| | | | | | broker-wide to save having to exclude them from individual ports git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239579 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3788: Remove remaining MINA configuration keys (and those from other ↵Keith Wall2012-01-281-2/+2
| | | | | | | | | | retired impls) from the Java Broker's config.xml * Remove remaining references to MINA transport configuration keys: enableDirectBuffers/enablePooledAllocator/filterchain from code and example config files. * Remove references to compressBufferOnQueue from config XMLs. The implementation that used it was removed back in 2007 by QPID-275. * Remove references to broker-side configuration key enableJMSXUserID. This broker feature was removed by QPID-943 (which replaced the functionality with an equivilent client-side option). The old Broker side key plays no part in the client-side function. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237088 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3775: Automate the manual persistent store tests.Keith Wall2012-01-288-245/+393
| | | | | | | | | Add new testcase BDBBackupTest to test the operation of the BDB store backup mechanism (backup.sh). Changed test case PersistentStoreTest to implement the manually scripted BDB tests. This required changes to QBTC and BrokerHolder to allow an external Brokers to be forcibly kill'd with -9. Remove script and class for manual tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236931 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-2731-64/+73
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Ensure all control flow statements use braces (keeping CheckStyle ↵Robert Godfrey2012-01-271-1/+1
| | | | | | happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236647 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : [Java] Tidy up import statements across the codebase, remove ↵Robert Godfrey2012-01-27168-828/+871
| | | | | | unused/redundant imports (keep Checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3779: replace the old ImmediateMessageTest and MandatoryMessageTest ↵Robert Gemmell2012-01-266-906/+211
| | | | | | | | with understandable versions and remove duplicate/obsolete tests FailoverTest and RollbackTest. Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236127 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3604 Added a test case to cover this issue.Rajith Muditha Attapattu2012-01-241-0/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1235556 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3774 : allow out of order completion of persistent enqueues / dequeues ↵Robert Godfrey2012-01-212-3/+4
| | | | | | (0-9 codepath) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1234215 13f79535-47bb-0310-9956-ffa450edef68