summaryrefslogtreecommitdiff
path: root/qpid/java
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3768: Refactor test case to avoid possibility of spurious test failureKeith Wall2012-01-181-29/+39
| | | | | | Changed impl of testGetNextWithAck() to avoid unsafe assumption that pre-fetching will mean sorting will never occur. Remove unnecessary message payloads used by some test (time in ms) as this was not contributing to test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1233125 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3688 Added a default constructor and allowed the destination string to ↵Rajith Muditha Attapattu2012-01-184-1/+34
| | | | | | be set and retrivied via a setter & getter. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232992 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3756: ManagedConnectionMBeanTest.testChannels occasionally fails on ↵Keith Wall2012-01-182-20/+38
| | | | | | | | | | | 0-10 spawned profiles This problem is caused by the connection mbean being deregistered too late (as the TCP/IP socket) is closed, thus creating a race between the client using JMX to observe connection state, and the unregistering of the bean. This patch changes the 0-10 code path to unregister the bean on receipt of ConnectionClose and before ConnectionCloseOkay is sent to the client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232785 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3766 Committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-171-12/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3764 Committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-173-6/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232611 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3763 Committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : Fix issue with default group assignment pointed out by RobbieRobert Godfrey2012-01-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3762: make sure to close the IoSender when the IoReciever indicates the ↵Robert Gemmell2012-01-161-1/+8
| | | | | | TCP connection went away, fixes leak for forcefully clsoed 0-9-1 connections git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232032 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3761: rename the fallback config to ensure it isnt just picked up by ↵Robert Gemmell2012-01-164-8/+8
| | | | | | Log4J automatically scanning the classpath git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232031 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : Reorder an ack in the test to prevent spurious failuresRobert Godfrey2012-01-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232022 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3758 : Reduce memory overhead of SessionsRobert Godfrey2012-01-131-40/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1231141 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3697: SortedQueue synchronisation can cause deadlockKeith Wall2012-01-134-3/+86
| | | | | | | Sorted queue enqueue() should lock on a private rather than the lock of the object to avoid the possibility of a deadlock with a thread performing subscription operations. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1231095 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3747: Prefetch behaviour test occasionally fails on 0-10 profileKeith Wall2012-01-131-22/+28
| | | | | | Reorder the sequence of test to avoid the possibility that the 3rd message will go to the 'wrong' consumer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1231094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3753 : [Java Broker] Improve automatic conversion of messages between ↵Robert Godfrey2012-01-129-28/+417
| | | | | | 0-8/9/9-1 and 0-10 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1230661 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3635: Refactored testcase to make objectives more clearKeith Wall2012-01-128-359/+295
| | | | | | | | Move testPrefetchSystemProperty to PrefetchBehaviourTest for better division of responsibilities between tests. Split AMQConnectionTest into QueueSessionFactoryTest and TopicSessionFactoryTest. Removed AMQSSLConnectionTest as there is nothing transport specific and therefore added nothing not already tested by SSLTest. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1230477 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : Fix bug which causes failure in 0-9-1 tests, namely ↵Robert Godfrey2012-01-111-3/+3
| | | | | | SimpleAMQQueue.QueueEntryListener assuming that all listeners are of the same type git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1230251 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3604 Reverting the changes as it releases messages everytime theRajith Muditha Attapattu2012-01-113-77/+9
| | | | | | channel is suspended. This results in several test failures. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1230088 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : Remove debugging log statementsRobert Godfrey2012-01-111-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1230013 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : Add alternative (C++ style) grouping and apply comments from ↵Robert Godfrey2012-01-116-209/+693
| | | | | | Robbie Gemmel git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229996 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3736 : Upgrade to BDB version 5.0.34Robert Godfrey2012-01-114-5/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229957 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3717 - Fixes based on review by Robbie GemmellRobert Godfrey2012-01-111-9/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229943 13f79535-47bb-0310-9956-ffa450edef68
* NO_JIRA Modified the test to stop the connection to ensure the consumerRajith Muditha Attapattu2012-01-111-5/+14
| | | | | | doesn't prefetch the messages until after the first message is replaced. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229858 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3604 The code now drains individual consumer queues as well as theRajith Muditha Attapattu2012-01-113-6/+77
| | | | | | | | | dispatch queue (via syncDipatchQueue method) and releases both unacked and prefetched messages, while only the former being marked redelivered. Also all of these transfers are being marked as completed to ensure credits don't dry up. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229857 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3279, committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3744, committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-101-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229753 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3735, committing patch by Weston Price.Rajith Muditha Attapattu2012-01-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229619 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3705, committing patch by Weston Price.Rajith Muditha Attapattu2012-01-101-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229618 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3700, Committing patch from Weston Price.Rajith Muditha Attapattu2012-01-103-2/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3731, committing patch from Weston Price.Rajith Muditha Attapattu2012-01-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3733, committing patch from Weston Price.Rajith Muditha Attapattu2012-01-101-19/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229578 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3730: remove ReadWriteJobQueue, it is no longer necessary as the only ↵Robert Gemmell2012-01-098-528/+12
| | | | | | things now using the thread pool are write jobs, so there is no need/benefit to request it be write-biased. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229112 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove unused codeRobert Gemmell2012-01-092-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229111 13f79535-47bb-0310-9956-ffa450edef68
* QPID-946 , QPID-2379 : Fix for BDBUpgradeTest failure introduced by previous ↵Robert Godfrey2012-01-081-108/+117
| | | | | | commit git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228853 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1644 : Fix 0-8 Java Client to only declare amq.* exchanges passively ↵Robert Godfrey2012-01-081-9/+12
| | | | | | when creating a producer git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228843 13f79535-47bb-0310-9956-ffa450edef68
* QPID-946 , QPID-2379 : QMF and Federation fixes (now works again with ↵Robert Godfrey2012-01-0730-145/+1502
| | | | | | qpid-config, qpid-route, qpid-tool) and store (durable) routes in the DB git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228748 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3715: Fix the receiving of an empty ObjectMessage (without a body)Keith Wall2012-01-076-46/+156
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228583 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3670: Add new build target to allow the Cobertura jar files to be ↵Robert Gemmell2012-01-062-7/+28
| | | | | | | | downloaded automatically if not already present Applied patch from Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228192 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3716: restore throwing of IllegalStateException upon invoking ↵Robert Gemmell2012-01-064-4/+87
| | | | | | | | Session#getTransacted() on a closed session Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228109 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3704: OutOfOrderQueue#checkSubscriptionsNotAheadOfDelivery cannot ↵Keith Wall2012-01-051-7/+3
| | | | | | consider _lastSeenEntry when determing if _releasedEntry should be retarded git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1227582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3566: Remove test case testSendReceiveClose testKeith Wall2012-01-041-77/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1227373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-464 : Attempt to log error using log4j before shutting downRobert Godfrey2012-01-041-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1227163 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3714 : Fix for NPE when a transient message (or when using the Memory ↵Robert Godfrey2012-01-041-0/+8
| | | | | | Store) has no body git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1227162 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3714 : Fix for NPE in the SecurityManager when a null routing key is ↵Robert Godfrey2012-01-041-1/+9
| | | | | | used in 0-10 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1227142 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : [Java Broker] Implement Message GroupingRobert Godfrey2012-01-0314-55/+674
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226930 13f79535-47bb-0310-9956-ffa450edef68
* QPID-464 : Set the default uncaught exception handler to abruptly terminate ↵Robert Godfrey2012-01-023-27/+91
| | | | | | | | the JVM (Note this commit also contains fixes for CurrentActorTest as it was discovered that this test was throwing uncaught exceptions from created Threads - i.e. not the main test thread) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226557 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3713 : Implement producer side flow control for 0-10 in Java BrokerRobert Godfrey2012-01-0210-30/+157
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226382 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3714 : [Java] Performance ImprovementsRobert Godfrey2011-12-28156-3308/+5123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Persistence: Store message in same transaction as enqueue if possible Memory: Remove unnecessary (un)boxing Reduce unnecessary copying of message data Cache short strings Cache queues for a given routing key on an Exchange (0-9) Use a fixed size buffer for preparing frames to write out Other: Reduce calls to System.currentTimeMillis (0-10) Special case immutable RangeSets, in particular RangeSets of a single range/point (0-10) Special case delivery properties and message properties in headers (0-9) send commit-ok as soon as data committed to store Cache publishing access control queries (0-9) Optimised long and int typed values for FieldTables (0-9) Retain FieldTable encoded form (0-9) Cache queue and topic destinations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1225178 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3712: fix regression (error in logic was adding port number to path twice).Keith Wall2011-12-261-7/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1224821 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3712: Correct QpidBrokerTestCase#isExternalBroker logic to correct ↵Keith Wall2011-12-261-2/+2
| | | | | | return true when testing with externally spawned Brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1224789 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3713: remove redundant failover test casesKeith Wall2011-12-2614-1560/+6
| | | | | | | | | | | | | The following tests/test cases have been identified: 1) QueueBrowserAutoAckTest#testFailover*. These tests were running against Java 0-9-1 profiles and excluded against Java/CPP 0-10. New test cases FailoverBehaviourTest#testTransactedQueueBrowserCloseWhileFailover/testClientAcknowledge test the same code paths. 2) AcknowledgeAfterFailoverOnMessageTest/AcknowledgeAfterFailoverTest. These tests were globally excluded (Excludes file). New tests FBT.testClientAcknowledgedSessionCloseAfterFailover/testTransactedSessionCloseAfterFailover/testAcknowledgeAfterFailoverForAsynchronousConsumer cover these scenarios. 3) MessageDisappearWithIOExceptionTest. Tests were added after a defect arising from Java Broker use of MINA. Test scenario covered by FBT.testRecoverAfterFailoverInAutoAcknowledgeMode. 4) FailoverBeforeConsumingRecoverTest. Test case seemed weak: merely caused a failover then repeated the same tests as its super (RecoverTest). FBT.testRecoverAfterFailover and testRecoverWithConsumedMessagesAfterFailover are superior replacements. 5) QuickAcking. Test exercised same code paths as FBT.testMessageProducingAndRollbackAfterFailover. CloseAfterConnectionFailureTest duplicates FailoverMethodTest#testNoFailover. The testcase was actually excluded from all profiles. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1224788 13f79535-47bb-0310-9956-ffa450edef68