summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-5765: don't invoke on dangling pointerGordon Sim2014-05-146-14/+6
| | | | | | | | | Strictly speaking comparing anything against the old pointer isn't correct either, but this is harder to change and the only negative effect is that in the event that a new connection has the same pointer value, it would be incorrectly interpreted as 'local'. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1594633 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5747: create codec for outgoing connections on establishing the ↵Gordon Sim2014-05-132-12/+18
| | | | | | connection, so that any disconnect before we try to write can still be communicated to upper layers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1594277 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5758: Move purging of expired messages from timer thread to worker threadGordon Sim2014-05-134-21/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1594220 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5750: [linearstore] Broker fails with JERR__AIO: AIO error. (AIO write ↵Kim van der Riet2014-05-1311-25/+142
| | | | | | operation failed: Invalid argument (-22) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1594215 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA fix hanging ha_tests.test_failover_send_receive on RHEL5Alan Conway2014-05-012-30/+28
| | | | | | | | | | | | | The test was hanging because of a python construct not available in 2.4. It was causing an exception in a strange place because this bit of code was imported at runtime, and that was hanging the test. Fixed and did some cleanup to avoid such mysterious hangs in future: - Fixed qpidtoollibs/config.py to work with python 2.4. - Import qpid-ha script at import time rather than runtime. - Fix Popen.teardown logic to avoid hanging if a process can't be killed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591794 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5741: No longer warn when building Qpid with Proton 0.7Andrew Stitcher2014-05-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591781 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5737: wakeup driver for output which may be necessary if sessions ↵Gordon Sim2014-04-301-0/+2
| | | | | | outgoing window has been moved forward by peer git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591470 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5736: only block until sent message is settled; signal rejection by ↵Gordon Sim2014-04-302-1/+6
| | | | | | throwing exception git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591300 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5735: Correct calculation of amqp.redeliveredAndrew Stitcher2014-04-301-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591183 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5489: Change uuid detection code to the code that proton usesAndrew Stitcher2014-04-291-22/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1590979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5489: More cleaning up of the Uuid codeAndrew Stitcher2014-04-2910-69/+126
| | | | | | | | - Rewrite the Uuid iosteam extractor and insertor operators to not require any underlying uuid library. - Create a specific uuid implementation for FreeBSD git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1590978 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5729: handle concurrent triggering of topic policyGordon Sim2014-04-283-1/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1590805 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5725: Use correct comparison function to match property keysAndrew Michael Stitcher2014-04-272-1/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1590505 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA minor cleanup of qpid-ha toolAlan Conway2014-04-242-57/+0
| | | | | | | | | | - Remove some dead code. - Removed "set" command - not ready for production. All settings in qpidd.conf. - Removed related tests in ha_tests - Improved help on promote command. - Made option group for common broker connection options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589834 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5719: HA becomes unresponsive once any of the brokers are SIGSTOPedAlan Conway2014-04-242-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | - Added timeout to qpid-ha. - qpidd init script pings broker to verify it is not hung. - updated documentation in qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml. The new results for the cases mentioned in the bug: a] stopped ALL brokers: rgmanager restarts the entire cluster but data is lost. Equivalent to killing all the brokers at once. This does not affect quorum because only qpidd services are affected, not other services managed by cman. b] stopped the primary: rgmanager restarts the primary after a timeout and promotes one of the backups. c] stopped a backup: rgmanager restarts the backups after a timeout. Clients that are actively sending messages may see a delay while backup is restarted. Note you need to set link-heartbeat-interval in qpidd.conf. The default is very high (120 seconds), it should be set lower to see recovery from sigstop in a reasonable time. See the updated documentation in qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589807 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5714: In ha_tests, skip if the target test code is missingJustin Ross2014-04-241-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589760 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5720: HA exception raised by the store for durable transactionsAlan Conway2014-04-233-8/+10
| | | | | | | | | | | | | | | Running qpid-txtest against a HA cluster was raising this exception: async_dequeue() failed: jexception 0x0b02 wmgr::dequeue_check() threw JERR_MAP_LOCKED: Record ID locked by a pending transaction. This is actually a test bug. In a cluster a transaction commit takes longer to complete because of co-ordinating with backups, the test was not waiting for the completion of commit command before proceeding. Adding a sync() in the test solves the problem. Note this test uses the old obsolete C++ API. Applications written using the supported messaging API are not affected by this. This can be verified using the qpid-send and qpid-receive clients with the --tx option (there is already an automated test for this in ha_tests.py.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589520 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5718: Dead code in the HA codebaseAlan Conway2014-04-231-15/+0
| | | | | | | Removed: std::ostream& operator<<(std::ostream& o, const QueueSetPrinter& qp) Already gone: void collectQueueReplicators(const boost::shared_ptr<Exchange>& ex, set<boost::shared_ptr<QueueReplicator> >& collect) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5663: [C++ Messaging] Windows AMQP 1.0 map_receiver failsCharles E. Rolke2014-04-221-1/+2
| | | | | | Updated patch from Gordon Sim. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589222 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5663: [C++ Messaging] Windows AMQP 1.0 map_receiver failsCharles E. Rolke2014-04-211-1/+1
| | | | | | MSVC's generated copy constructor for DataBuilder failed to copy the map correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588966 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5714: Skip python tests if test code is missingJustin Ross2014-04-212-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588883 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: older versions of boost get confused when one option is a substring ↵Gordon Sim2014-04-171-1/+1
| | | | | | of another see r1587304 and r1587976 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588212 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5708: only set 'queue' type if routing-key is not emptyGordon Sim2014-04-161-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588004 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5707: treat '#' as implying create for exchange as well as queueGordon Sim2014-04-161-3/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588001 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5706: add optional domain to incoming and outgoing link objectsGordon Sim2014-04-1612-18/+82
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588000 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5705: throw exception when domain already existsGordon Sim2014-04-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587999 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5704: use shared pointer to avoid dangling referece to domainGordon Sim2014-04-164-20/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587998 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: make new output introduced in r1587304 optional, as it breaks ↵Gordon Sim2014-04-161-5/+9
| | | | | | several tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587976 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5694: Windows C++ broker SSL: do not send non-existent negotiation ↵Clifford Jansen2014-04-151-1/+1
| | | | | | token on shutdown git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587446 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Make qpid-receive print a bit more info for message headers/contentAndrew Michael Stitcher2014-04-141-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587304 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5669: spurious error on connection close (Windows C++): SSL negotiation ↵Clifford Jansen2014-04-143-42/+67
| | | | | | failed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1587222 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5681: Fix core dump in interlink_tests.Alan Conway2014-04-112-1/+9
| | | | | | Use native python client for older (<=0.6) versions of proton. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1586646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5560: Fix ReplicationTests.test_reject to work with SWIG and native ↵Alan Conway2014-04-091-1/+1
| | | | | | | | clients. Catch more general LinkError rather than TargetCapacityExceeded which is only raised by native client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585985 13f79535-47bb-0310-9956-ffa450edef68
* Author: Alan Conway <aconway@redhat.com>Alan Conway2014-04-081-2/+3
| | | | | | | --- log message follows this QPID-5560: Remove use of python if expression, not available in older python (2.4) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585755 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5560: HA tests do not use AMQP 1.0Alan Conway2014-04-0723-588/+774
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The HA tests were using only AMQP 0-10. Modified the tests to use AMQP 1.0 if available (still use 0-10 if 1.0 is not available) Fixed bugs uncovered both in the tests and in the AMQP 1.0 implementation. Summary of changes: - brokertest.py: configurable support for of swig vs. native and amqp0-10 vs. 1.0 - default to swig+amqp1.0 if swig is available, native+amqp0-10 otherwise - qpidtoollibs/broker.py: enable use of swig client with BrokerAgent - Swig python client: - support for passing client_properties/properties. - expose AddressHelper pn_data read/write as PnData helper class - set sender/receiver capacity on creation - limited disposition support - rejected messages. - support for additional timeout parameters - expose messaging::Logger, allow log configuration to be set from python. - ha_tests.py: - bind, delete policies not supported by AMQP 1.0, switched to using BrokerAgent QMF. - pass protocol:amqp1.0 connection-option to c++ test clients (qpid-send, qpid-receive) - TX tests forsce use of 0-10 protocol (but still with Swig client if enabled.) - Broker fixes: - Queue::Settings::isTemporary was set in the 0-10 SessionAdapter, moved to Broker::createQueue. - broker::amqp::Session was always setting an exclusive owner in createQueue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5667: C++ broker: QMF subscribe events are not raised with AMQP 1.0Alan Conway2014-04-078-32/+34
| | | | | | | The raise event logic for subscribe/unsubscribe events was in 0-10 specific code. Moved it into Queue.cpp so events are generated regardless of protocol. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585587 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5666: HA fails with resource-limit-exceeded: Exceeded replicated queue ↵Alan Conway2014-04-077-26/+55
| | | | | | | | | | | | limit This is regression introduced in r1561206: CommitDate: Fri Jan 24 21:54:59 2014 +0000 QPID-5513: HA backup fails if number of replicated queues exceeds number of channels. Fixed by the current commit. PrimaryQueueLimits was not taking account of queues already on the broker prior to promotion. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585507 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5661: Set default cmake build to exclude linearstoreKim van der Riet2014-04-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584379 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5660: [legacystore] Python tests fail with syntax error on Python 2.4Kim van der Riet2014-04-032-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5659: Fixes to compile with C++11 (needed to compile with clang on ↵Andrew Stitcher2014-04-0214-19/+26
| | | | | | | | | | | FreeBSD 10) - shared_ptr no longer has a default conversion to bool. - Change in default destructor semantics: by default destructors are now not allowed to throw exceptions. - stringstream no longer has a default conversion to string. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584199 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5658: Small changes to compile with clang's libc++Andrew Stitcher2014-04-024-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584198 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5648: restore processing the ConnectionSettings protocol, lost ↵Clifford Allan Jansen2014-04-022-5/+9
| | | | | | inadvertently in QPID-5568 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1583901 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Bugfix for qpid_qls_analyzeKim van der Riet2014-04-012-11/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1583778 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5651: [C++ broker] segfault in ↵Pavel Moravec2014-03-281-0/+1
| | | | | | qpid::linearstore::journal::jdir::clear_dir when declaring durable queue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1582730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5641: [legacystore] Valgrind reports memory leaks on older store testsKim van der Riet2014-03-215-1727/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1579963 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5586: Introduce SessionClosed exceptionAndrew Stitcher2014-03-193-1/+5
| | | | | | | - use it for qpid::messaging::Session::nextReceiver to ensure that closing a connection/session can be distinguished. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1579367 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: No store tools exist for examining the journals - Bugfix and ↵Kim van der Riet2014-03-185-124/+142
| | | | | | reorganization of qls python modules. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1578899 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5631: Adjust for changes in Proton detection files exported by proton.Andrew Stitcher2014-03-162-62/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1577982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5632: Added cmake config files to the install areaAndrew Stitcher2014-03-163-1/+81
| | | | | | For use by other projects using cmake that want to simply detect qpid libraries git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1577981 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5630: Windows C++ broker never loads modules using --module-dirAndrew Stitcher2014-03-141-1/+3
| | | | | | - Need to use full path to load modules instead of just the filename. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1577742 13f79535-47bb-0310-9956-ffa450edef68