summaryrefslogtreecommitdiff
path: root/qpid
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1181 : Added additional logging to help diagnose a NullPointerExceptionMartin Ritchie2008-07-163-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677263 13f79535-47bb-0310-9956-ffa450edef68
* Renamed shutdownServer to restartBroker as that is what is doesMartin Ritchie2008-07-164-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677262 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1179 : Adjusted the test size from 100 to 10, this should reduce the ↵Martin Ritchie2008-07-161-26/+48
| | | | | | likely hood of a slow machine failing the test. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677260 13f79535-47bb-0310-9956-ffa450edef68
* Converted client.failover.FailoverTest so it can utilise the standard ↵Martin Ritchie2008-07-163-73/+72
| | | | | | mechanism for failover testing, as the local CruiseControl had testP2PFailoveWithMessagesLeft fail with extra messages being left on broker. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677259 13f79535-47bb-0310-9956-ffa450edef68
* Added a warning log statement if the TransportConnection autocreates an InVM ↵Martin Ritchie2008-07-161-0/+1
| | | | | | Broker git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677258 13f79535-47bb-0310-9956-ffa450edef68
* Changed erroneous error level logging to info levelMartin Ritchie2008-07-162-6/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1178 : Prevent Rejecting messages destined for known QueueBrowsersMartin Ritchie2008-07-161-3/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677256 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1177 : Added Protocol Level Debug logging. Uses a final static so ↵Martin Ritchie2008-07-152-1/+15
| | | | | | should JIT out if disabled. To enable set -Damqj.protocol.logging.level=info git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-940,QPID-594,QPID-805,QPID-826 : Updated the client exception handling ↵Martin Ritchie2008-07-1544-929/+1035
| | | | | | | | | | | | | | | | | | | | | | so that exceptions are not lost. In performing the changes I noted that the AMQStateManager is only used for connection creation in the 08/09 codepath. Now this may be due to the fact that we don't currently need to wait on any other states. We need to improve our testing of error conditions for all protcol versions. Changes Summary: The MethodHandlers had their AMQStateManager parameters swapped for AMQSession as that is what they all cared about. The BlockingMethodFrameListener was used as a basis to create a generic BlockingWaiter which is now used by StateWaiter, There is probably scope to refactor the AMQStateManager and the parts of the AMQProtocolHandler that deal with the _frameListeners into a generic class but that can be looked at as part of a wider client refactor. Additionally tests were updated such as SimpleACLTest and ConnectionTest as they were expecting JMSExceptions from the constructor but the JMS API does not demand that and AMQExceptions are now correctly being thrown. The SimpleACLTest also required a change to AMQSession. The test calls send which will cause the connection to be closed asynchrously due to a permission violation. As this exception is not expected and is asynchorous to the client code it cannot be directly thrown. The solution is to record this exception in the AMQStateManager, it can tell that there are no waiters for the exception so it can record the value.(Potential exists to alert if the exception is overwritten but I don't think this is required right now) When the AMQSession checks that the connection is closed it is then possible to check if the current State is CLOSED and if we have an exception sitting in the AMQStateManager. If all these are true we can attach the AMQStateManager exception to the IllegalState Exception that is normally thrown when the Session is closed. This maintains JMS Compliance and allows us to discover the cause of the failure, SimpleACLTest was updated by removing the IllegalState catch section that was causing the test to silently fail. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676978 13f79535-47bb-0310-9956-ffa450edef68
* QPID-984 : Applied fix from M2.1.x that adds requried synchronization around ↵Martin Ritchie2008-07-151-98/+81
| | | | | | setup and tear down of Connections. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676973 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1176 : Update to gentools to remove commented out properties that I ↵Martin Ritchie2008-07-151-9/+0
| | | | | | left in via git :( git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676972 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1079 : Based on Code Review : Remvoed AutoCreateVMBroker code from ↵Martin Ritchie2008-07-1576-15265/+16
| | | | | | QpidTestCase. Removed VMTestCase and all references to it, it was only used in JUnit4 testSuite wrappers. Rather than move QpidTestCase to a new module all client tests have that require this class have been moved to systests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676971 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1079 : Based on Code Review : Remvoed AutoCreateVMBroker code from ↵Martin Ritchie2008-07-15115-429/+15287
| | | | | | QpidTestCase. Removed VMTestCase and all references to it, it was only used in JUnit4 testSuite wrappers. Rather than move QpidTestCase to a new module all client tests have that require this class have been moved to systests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676969 13f79535-47bb-0310-9956-ffa450edef68
* Fix "ignoring return value" warning from LockFile.h.Alan Conway2008-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676963 13f79535-47bb-0310-9956-ffa450edef68
* fix cpp client, path changesAidan Skinner2008-07-151-8/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676951 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1102.Rajith Muditha Attapattu2008-07-152-28/+27
| | | | | | | I have fixed the error handling and revised the while loop in IoSender based on the comments received during the code review git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676938 13f79535-47bb-0310-9956-ffa450edef68
* Switched from shared_ptr to intrusive_ptr and RefCounted for Broker.Alan Conway2008-07-159-22/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676932 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1172 : Moved unregistration out of the sendLock. Potential refactor ↵Martin Ritchie2008-07-151-239/+175
| | | | | | possible between processQueue and flushSubscription git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676887 13f79535-47bb-0310-9956-ffa450edef68
* Removed the non ASCII characters that are causing the build to minorly complain.Martin Ritchie2008-07-153-9/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676886 13f79535-47bb-0310-9956-ffa450edef68
* Updated log4j format as per discussion on mailing list.Martin Ritchie2008-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676885 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1176 : Updated Tasks and gentools build to use the java.source and ↵Martin Ritchie2008-07-155-18/+40
| | | | | | java.target values. Added echo statements to show the targeted build Updated other info echo statements to be an info level so they will not print with -q. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676884 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1175 : VirtualHost now validates that name is non-null and non-empty. ↵Martin Ritchie2008-07-152-1/+6
| | | | | | Full protocol validation of the virtualhost name has not been performed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676883 13f79535-47bb-0310-9956-ffa450edef68
* QPID-909 Added missing license header and fixed execute bit on MessageSize.shMartin Ritchie2008-07-153-1/+45
| | | | | | | Added RunAll.sh for good measure git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676878 13f79535-47bb-0310-9956-ffa450edef68
* Multi-version interop test scriptAidan Skinner2008-07-151-0/+173
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676831 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1174 Remote Management Agent for management of external componentsTed Ross2008-07-1113-83/+1032
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676067 13f79535-47bb-0310-9956-ffa450edef68
* Move shutdown of management broker to end of shutdown sequenceTed Ross2008-07-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675674 13f79535-47bb-0310-9956-ffa450edef68
* Honour timeout in BlockingQueue::pop(); added test for ↵Gordon Sim2008-07-102-1/+2
| | | | | | | | | SubscriptionManager::get() where no message exists. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675477 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1171: batch acks when prefetch is usedRafael H. Schloming2008-07-102-4/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675433 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1062: moved channel id into the ProtocolEvent interface and removed ↵Rafael H. Schloming2008-07-1015-119/+121
| | | | | | ConnectionEvent, this removes the overhead of creating ConnectionEvents git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675397 13f79535-47bb-0310-9956-ffa450edef68
* Some small changes which clean up header file inclusionsAndrew Stitcher2008-07-0910-38/+57
| | | | | | | | and generally start to tidy up the network layer so that it's a bit easier to implement new network transports git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675338 13f79535-47bb-0310-9956-ffa450edef68
* Allow for pluggable exchange types.Gordon Sim2008-07-092-6/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675252 13f79535-47bb-0310-9956-ffa450edef68
* Primarily profiling driven changes:Rafael H. Schloming2008-07-0940-694/+774
| | | | | | | | | | | | | | | | | | | | | | | - added batched writes of commands/controls issued on a session - copy fragmented frames and segments rather than trying to decode them piecemeal, removed FragmentDecoder - added caching for str8 encode/decode - compute sizes as we encode by going back and filling in the amount of bytes written rather than computing it up front - added SYNC option to commands - renamed NO_OPTION argument to NONE - added a timeout to Client.java - removed use of UUID.fromString in BasicMessageProducer_0_10.java git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675165 13f79535-47bb-0310-9956-ffa450edef68
* Removed dead code.Alan Conway2008-07-092-15/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675155 13f79535-47bb-0310-9956-ffa450edef68
* Fix signed/unsigned compare errorAlan Conway2008-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675146 13f79535-47bb-0310-9956-ffa450edef68
* Fix for older boost versionsAlan Conway2008-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675144 13f79535-47bb-0310-9956-ffa450edef68
* HandlerChain: plug-in handler chain extension points. Replaces ↵Alan Conway2008-07-0820-224/+208
| | | | | | | | | Handler<T>::Chain. Updated Sessoin & Connection handler chains and Cluster. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@675017 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1170 - Remove boost dependency from management agent interfaceTed Ross2008-07-0838-282/+353
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674994 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1161.Rajith Muditha Attapattu2008-07-081-4/+8
| | | | | | | Added the ability to pass in JVM ARGs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674976 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused Serializer code.Alan Conway2008-07-086-462/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674955 13f79535-47bb-0310-9956-ffa450edef68
* Fix packaging error.Alan Conway2008-07-081-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674945 13f79535-47bb-0310-9956-ffa450edef68
* Revert un-necessary Plugin complications. Better solution for plugin ↵Alan Conway2008-07-089-173/+116
| | | | | | extension points coming up... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674915 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1148 - from Manuel TieraAlan Conway2008-07-088-88/+128
| | | | | | | | | | | | | | | | Lock file abstraction in sys/ with implementation portable to Linux and Solaris. Changes by myself: - Makefile.am - must be updated for any new/renamed/removed source files. - Exception.h, Daemon.h, LockFile.h: Replaced throwIf() with if (...) throw ErrnoException(...) The idiom throwIf(call-system-function(), "msg", errno) is incorret (my fault, not Manuels). It assumes the first argument that makes a system call call will be evaluated before the last one which fetches errno. This may not be true on some compilers/platforms. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674865 13f79535-47bb-0310-9956-ffa450edef68
* Removed static Cpg::handlers, fixed ForkedBroker shutdown.Alan Conway2008-07-085-59/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674855 13f79535-47bb-0310-9956-ffa450edef68
* * release message lock when notifying queue listenersGordon Sim2008-07-082-29/+53
| | | | | | | | | * take copy of listeners * remove unused functionality git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674848 13f79535-47bb-0310-9956-ffa450edef68
* Fix leak in XmlClientSessionTests - was leaking a Session.Alan Conway2008-07-081-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674825 13f79535-47bb-0310-9956-ffa450edef68
* QPID-293 allow messages which have been received by the consumer before a ↵Aidan Skinner2008-07-082-4/+12
| | | | | | | | | | message listener has been set to be delivered. BasicMessageConsumer.java: If there are messages on the synchronous queue when a message listener is set, deliver them to it since they can no longer be consumed(). MessageListenerTest.java: Uncomment code that will make the test fail and demonstrate the bug git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674747 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1162Rajith Muditha Attapattu2008-07-075-5/+162
| | | | | | | | Added a README file to describe what the tests are and how they can be run. Modified to consumers to print the iteration number instead of the message id. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674622 13f79535-47bb-0310-9956-ffa450edef68
* ForkedBroker: child process exits on completion.Alan Conway2008-07-071-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674587 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPId-1161.Rajith Muditha Attapattu2008-07-0712-25/+289
| | | | | | | | | | | Modified the soak tests to print latency samples and throughput rates for every iteration. Added run_soak_client.sh soak_report.sh as an example of how to use soak test and produce a report. Modified other scripts to add comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674569 13f79535-47bb-0310-9956-ffa450edef68
* Disable certain ConnectionTest tests since the 010 broker doesn't currently ↵Aidan Skinner2008-07-071-0/+3
| | | | | | implement that behaiour git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674541 13f79535-47bb-0310-9956-ffa450edef68