summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-3534: ignore transport exceptions raised whilst closing the network ↵Robert Gemmell2011-10-111-1/+10
| | | | | | | | connection after sending the close-ok reply, as these can prevent failover occurring and are actually related to the broker (incorrectly) having already closed the socket Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1181735 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3534, QPID-3535: make 0-8/0-9/0-9-1 client path simply close the ↵Robert Gemmell2011-10-101-1/+1
| | | | | | | | | underlying NetworkConnection instead of sending an erroneous ConnectionClose body after replying to the ConnectionClose from the broker or receving an unsupported protocol verison during initial connection negotiation. Stops the client making 2 seperate attempts to initiate failover, and removes possibility of the exception that can currently cause both of them to be skipped. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1181204 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: update various tests to try and avoid their sporadic failure on the ↵Robert Gemmell2011-10-074-17/+17
| | | | | | | | | | | | Jenkins persistent test runs due to the sometimes severe slowdowns on the Jenkins slaves InfoPluginTest: correct the test to record receipt of the payload before tripping the countdown latch, ensuring the subsequent list size check in the main test thread doesnt fail because of scheduling. AMQQueueDeferredOrderingTest: reduce the number of messages used during persistent runs, the test takes an excessive amount of time to complete and can fail if the storage is expecially slow. ResetMessageListenerTest: increase the time allowed to receive the messages, the 1sec allowance can be insufficient on persistent runs if the storage is especially slow. QueueDepthWithSelectorTest: ensure that a synchronous operation is performed before proceeding to later validate the queue depth on another session, ensuring that in persistent runs all the acks have first made it to the broker and been processed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1180245 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3346: move message group feature into trunk.Kenneth Anthony Giusti2011-10-071-3/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1180050 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: allow test to take longer when run on a persistent broker, due to ↵Robert Gemmell2011-10-071-1/+2
| | | | | | sporadic failure caused by occasional slowdowns on the Jenkins slaves git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1180035 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3425, QPID-3034: unexclude tests excluded during work on ↵Robert Gemmell2011-10-071-11/+0
| | | | | | session.recover() in QPID-2471 because they had shown the changes made in QPID-2471 had actually severely broken recover() for 0-8/9/9-1 protocols git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179987 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526: ensure that the session is marked clean after ↵Robert Gemmell2011-10-072-0/+26
| | | | | | message.acknowledge() is used, add test to verify behaviour git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179965 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2442: Make 0-10 TemporaryQueue#delete and TemporaryTopic#delete perform ↵Keith Wall2011-10-069-299/+333
| | | | | | the delete on the Broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3524, QPID-3525, QPID-3526, QPID-3527: add new failover behaviour tests ↵Robert Gemmell2011-10-061-0/+924
| | | | | | | | for variety of acknowledgement modes Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179703 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3524: enable support for failing over transacted sessions, ensuring ↵Robert Gemmell2011-10-062-40/+30
| | | | | | | | txSelect is sent after the command-point process is complete, but before the session is marked in the open state. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3525: stop the client from accidentally consuming the messages it is ↵Robert Gemmell2011-10-062-17/+28
| | | | | | | | actually trying to recover when using 0-8/9/9-1. Also stops it acking the message from the in-progress onMessage delivery after Session.recover() was called. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179699 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3527: update handling of auto-ack messages for 0-10 to send acks ↵Robert Gemmell2011-10-066-80/+53
| | | | | | | | (asynchronously) on a per-message basis rather than batching for 1 second, update handling for other ack modes to be clearer with respect to 0-8/0-10 behavioural differences. Remove some redundant methods from AMQSession, updating handling of 'no consume'/'isBrowseOnly' such that BasicMessageConsumer is always supplied a single consistent answer for whether it is non-consuming or not. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179698 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526, QPID-3524: make sure the 0-10 client message.acknowledge() ↵Robert Gemmell2011-10-0614-574/+205
| | | | | | | | actually acknowledges messages immediately, and does so synchronously, adding test to verify behaviour. Split acknowledge() and commit() methods into version specific session implementations for clarity/reuse, align 0-10 and 0-8/9 transacted publishing behaviour, refactor preDeliver and postDeliver methods, remove dead code from consumers. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179695 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526: move duplicated methods into the parent abstract message ↵Robert Gemmell2011-10-065-191/+72
| | | | | | | | delegate, remove dead code from BassicMessageConsumer Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179694 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3512: Avoid race during 0-8..0-9-1 connection close.Keith Wall2011-09-305-34/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177689 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3402: ensure the test JVMs execute with the working dir set to the ↵Robert Gemmell2011-09-3029-61/+65
| | | | | | | | qpid/java dir, use relative paths to the broker startup script and config files, update the QBTC configuration override functionality to operate relative to QPID_HOME to avoid setting properties with spaces/parentheses into QPID_OPTS Enables the java test profiles to cope with spaces/parentheses in the parent directory structure of the checkout, as found in the matrix project workspaces on the ASF Jenkins instances git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177658 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3515: update qpid-server and qpid-run to enable them to work if ↵Robert Gemmell2011-09-302-7/+10
| | | | | | QPID_HOME and QPID_WORK contain spaces and parentheses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177657 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3504: make the broker start script check for additional jar files in ↵Robert Gemmell2011-09-301-2/+2
| | | | | | lib/opt/ to add to its classpath using the JDK 6 classpath expansion convenience, enabling an easier way of adding the optional BDB JE jar dependency than via the existing -run:<option> classpath manipulations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3513: Avoid use of shell script clean-dir during test cycleKeith Wall2011-09-2918-94/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177333 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3511: Removal of unused system property "qpid.default_wait_on_send" ↵Keith Wall2011-09-2814-135/+68
| | | | | | | | from Java Client. Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176821 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3507: move the MessageListener check in front of the _receiving CASRobert Gemmell2011-09-271-4/+4
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176326 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3444, QPID-3363: update destinations in AddressBasedDestinationTest to ↵Robert Gemmell2011-09-252-6/+5
| | | | | | | | | use ensure use of Address based destinations, update CloseTest to use JMS methods for creating destination. Resolves spurious test failures on C++ and Java broker profiles since they started properly enforcing binding restrictions on the default exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3444: issue an invalid argument execution exception if the exchange ↵Robert Gemmell2011-09-256-16/+26
| | | | | | name is null or the empty string. Update some constants to ensure the error code is logged with the correct message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3402: fix excludes files to work with spaces etc in path, make SSL ↵Robert Gemmell2011-09-254-6/+10
| | | | | | tests use relative path to keystore files to allow parsing the URLs containing them git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3504: add the Java broker bdbstore to the build as an optional moduleRobert Gemmell2011-09-2466-7/+7371
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175235 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3332: Separate open/idle transaction timeout tests to remove the ↵Keith Wall2011-09-235-313/+199
| | | | | | possibility of an unexpected log message. Remove TransactionTimeoutConfigTest as this only duplicated tests aleady performed by TransactionTimeoutTest. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174842 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3501: LogMonitor duplicates chunks of log file if it fails to find ↵Keith Wall2011-09-234-28/+23
| | | | | | match. Avoid busy-wait in LogMonitor whilst polling log file. Make QpidBrokerTestCase use a autoflushing PrintStream for writing broker messages to log (client side messages were already autoflushed as this is a default behaviour of the log4j Appender). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174648 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3501: LogMonitor can corrupt test logs files and cause tests ↵Keith Wall2011-09-2212-60/+127
| | | | | | subclassing AbstractLoggingTests to fail. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174196 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3498: Broker race condition mean that it tries to respond before ↵Keith Wall2011-09-212-1/+5
| | | | | | IoSender thread is running git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1173738 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the extraneous toString()Rajith Muditha Attapattu2011-09-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1173693 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3493: FailoverMethodTest.testFailoverSingleDelay occasionally fails on ↵Keith Wall2011-09-191-2/+2
| | | | | | slow CI box git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1172541 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3415: Change 0-10 code path to utilise the CallbackHandlerRegistry to ↵Keith Wall2011-09-1914-413/+652
| | | | | | create the correct CallbackHandler. The sasl_mechs property/broker option is retained, but continues to be understood only by the 0-10 path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1172506 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2672: Unroutable persistent messages should be immediately removed from ↵Keith Wall2011-09-158-81/+148
| | | | | | store. Added new operational logging message (EXH-1003 - Discarded Message) that reports when the Broker drops an unroutable message. Added new System Test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1171079 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3486: Make connector server port used for JMX configurable.Keith Wall2011-09-1414-170/+250
| | | | | | | Commited work from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3448: catch exceptions from the underlying Transport/Session/Connection ↵Robert Gemmell2011-09-138-48/+953
| | | | | | | | and rethrow as a JMSException like users are expecting Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170182 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3428: fix excludes after test related changes from to prior patch ↵Robert Gemmell2011-09-132-3/+16
| | | | | | feeback, add a bit of javadoc to tests and use constants git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169984 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3428: make the Java broker validate 0-10 Session names, enabling it to ↵Robert Gemmell2011-09-1314-23/+144
| | | | | | | | | satisfy the clients new ClientID verification feature. Misc updates to the clients verification process. Applied patch from Andrew MacBean git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3449: adds ability to override the session timeout via JVM properties ↵Robert Gemmell2011-09-124-5/+101
| | | | | | | | qpid.sync_op_timeout and the legacy amqj.default_syncwrite_timeout, across all protocol versions Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169773 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3459: Increments delivery counter before transfering message to client ↵Robert Gemmell2011-09-123-3/+3
| | | | | | | | in order to count delivery attempts. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627: update build.deps to reflect removal of dependency on mina and ↵Robert Gemmell2011-09-103-48/+1
| | | | | | ensure the generated client poms are correct, delete the associated maven dependency stubs which become unused git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627 : Remove dependency on MINARobert Godfrey2011-09-0997-2924/+3012
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3477: add excludes file for use with the Java broker when running the ↵Robert Gemmell2011-09-091-0/+22
| | | | | | | | 0-10 python client tests Applied patch from Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167111 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3429: exclude the AMQSSLConnectionTest from cpp profiles, since only ↵Robert Gemmell2011-09-071-0/+4
| | | | | | the cpp.ssl profile can run it yet doesnt really need to git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166256 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2901: fixes racing conditions on broker side when TopicDeletePolicy is ↵Robert Gemmell2011-09-073-2/+16
| | | | | | | | closing the consumer Session but the broker is trying to deliver next message to the Subscription of this closing Session. Applied patch from Oleksandr Rudyy <orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166246 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3467: replace the 'connection id' with the Username of the logged in ↵Robert Gemmell2011-09-075-76/+89
| | | | | | | | user for the ManagementActor, since the value for the connection id was arrived at using an incorrect assumption that the id number in the thread name for a particular RMI thread is specific to a given JMX connection when it isnt. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166134 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3473 : Replace use of MINA IO with transport IO (joint work with Robbie ↵Robert Godfrey2011-09-0757-2899/+771
| | | | | | Gemmel) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166069 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the 'create:always' option when constructing theRajith Muditha Attapattu2011-09-061-1/+1
| | | | | | | | address string from the replyTo construct. The application which sets the replyTo is responsible for creating/deleting the replyTo destination and not the one who sends messages to it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3463: Adds catching of Throwable on broker startupRobert Gemmell2011-09-061-1/+1
| | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3468: exclude QueueBrowser related failover testsRobert Gemmell2011-09-052-0/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Added logic to convert exchange/replyTo pairs into addressRajith Muditha Attapattu2011-09-051-3/+58
| | | | | | strings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165148 13f79535-47bb-0310-9956-ffa450edef68