summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4249 TopicExchange binding lookup for all routing keysCharles E. Rolke2012-08-243-11/+152
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1377130 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2393 Limit number of queues per user.Charles E. Rolke2012-08-2412-7/+366
| | | | | | | | | Merge work from branches/qpid-2393 This scheme works for old HA as long as cluster members run with the same --max-queues-per-user setting. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1376961 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4230 Username substitution keywords in Acl file. Repair function ↵Charles E. Rolke2012-08-211-4/+4
| | | | | | definitions that fail Windows compile. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1375583 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4230 (review 6645) Username substition keywords in Acl file.Charles E. Rolke2012-08-205-13/+738
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1375195 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4234: ensure configuration observers see queue deletionGordon Sim2012-08-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373831 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4178: Test value specified for no-local, rather than assuming its trueGordon Sim2012-08-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373431 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Initialize variable before its use.Charles E. Rolke2012-08-151-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373429 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4178: Mark literals as unsigned intsGordon Sim2012-08-151-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373409 13f79535-47bb-0310-9956-ffa450edef68
* Resolves QPID-4084, changing the format of high-res logged time from ↵Stephen D. Huston2012-08-141-14/+60
| | | | | | seconds-since-start to date/time, consistent with the POSIX version of the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373147 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4178: Fix valgrind errors: prevent circular reference in messages, ↵Gordon Sim2012-08-135-7/+43
| | | | | | prevent uninitialised required credit value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1372453 13f79535-47bb-0310-9956-ffa450edef68
* SSL changes for new buffer managementAndrew Stitcher2012-08-106-153/+149
| | | | | | | | | - Needed to rework SslConnector to mirror TCPConnector in order to make changes to the client side, but now Unix SSL and TCP client implementations are much more alike. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371775 13f79535-47bb-0310-9956-ffa450edef68
* Rearrange buffer memory ownership to avoid leaking buffer memoryAndrew Stitcher2012-08-1012-70/+87
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371774 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4142 C++ Broker connection counting gets usernames confused Charles E. Rolke2012-08-106-0/+63
| | | | | | | | | | when various auth mechanism are used. The issue is that the connection's userId is changed as the auth progresses. Also, the shadowed connections change differently from the non-shadowed connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371772 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Avoid uninitialised variable warningAndrew Stitcher2012-08-101-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371735 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Work around compiler warning from clang 3.1 about casting between ↵Andrew Stitcher2012-08-101-1/+1
| | | | | | type alignments git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371695 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4178: broker refactoringGordon Sim2012-08-10132-7246/+4302
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371676 13f79535-47bb-0310-9956-ffa450edef68
* Remove cluster (prerequisite for QPID-4178)Gordon Sim2012-08-1075-9529/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4200: Add exception handling to qpid::client::AutoCancel destructorGordon Sim2012-08-091-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371320 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4193: prevent race when connecting a multi-homed federated cluster.Kenneth Anthony Giusti2012-08-084-37/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1370792 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Trivial correction to log message.Alan Conway2012-08-071-1/+1
| | | | | | Log message logic was inverted, making the message confusing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1370395 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA only expect READY backups in recovery.Alan Conway2012-08-074-6/+8
| | | | | | | | | | | Don't wait for un-ready backups to become ready in recover, they weren't ready before the failure so don't wait for them to become ready after a failure. Waiting for READY backups gives us equivalent safety to before the failure. Minor test & log improvements. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1370325 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4191: HA removing self address breaks if a VIP is used.Alan Conway2012-08-0610-54/+41
| | | | | | | | | | | | | | | | | | | Pre this patch the HA broker removed its own address from the set of cluster addresses to form the set of failover addresses. The goal was avoid useless self-connection attempts. However this was broken with a Virtual IP address where a single address is used for the entire cluster. The remove-self is not essential, self-connection attempts are prevented elsewhere. Backup brokers will be prevented from connecting to self by the same connection-observer as normal clients, and this patch addes self-connection checks ins This patch - removes the code to remove self-addresses - adds self-connection checks in ConnectionObserver - adds & reorders some log statements & comments for greater clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1370002 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4194 : re-enable queue events in CATCHUP stateMichael Goulish2012-08-061-1/+7
| | | | | | | | | pavel moravec's fix -- without this, newbie broker with a replication queue will not replicate messages received during CATCHUP. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1369960 13f79535-47bb-0310-9956-ffa450edef68
* Remove static initialisation from EpollPollerAndrew Stitcher2012-08-021-5/+3
| | | | | | | | - It's better practice in a library not to rely on any globals or static initialisation. - This should also fix QPID-2367 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368685 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove unused return parameter part II - WindowsAndrew Stitcher2012-08-011-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368300 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4176: HA Error handlingAlan Conway2012-08-012-0/+3
| | | | | | Added missing throw statements that were omitted in r1367649. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1368149 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed unused return parameterAndrew Stitcher2012-07-312-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367790 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4179: Cluster does not replicate exclusive status of queues.Alan Conway2012-07-312-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367776 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove some extra code left in by mergeAndrew Stitcher2012-07-311-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367696 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4176: HA Error handlingAlan Conway2012-07-314-43/+66
| | | | | | | Additional error handling and logging for ConnectionObserver, Primary and ReplicatingSubscription. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367649 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4176: HA Error handlingAlan Conway2012-07-314-5/+12
| | | | | | | | | Fix error handling so that backup brokers shut down on replication errors. Previously replication errors were being thrown to the primary, breaking the replication session. This would put the primary into an endless futile reconnect attempt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367554 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4175: HA code rationalize loggingAlan Conway2012-07-306-17/+34
| | | | | | | | | | | Clean up and rationalize log messages and levels. notice: Major broker-level events: connecting, failing-over, primary active, backup ready. info: Major queue level events: subscriptions ready, replicators created etc. debug: Detailed replication events: accept/reject conections, details of queue replication protocol. trace: dumping raw QMF messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367231 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4159: HA missing messages in failover test.Alan Conway2012-07-267-34/+40
| | | | | | | | | | | | Fix test_failover_send_receive showing missing messages. With this fix, ran with -DDURATION=2 overnight with no failures. - Primary, RemoteBackup: Only report "ready" once per remote backup. - HaBroker: Put membership updates under mutex. - ReplicatingSubscription: Check for backup missing messages at the front. - ha_tests.py: Added assertion to test_priority_ring, verify primary queue as expected. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1366179 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3175 - Added SSL/x.509-auth capability to Python clients and Python toolsTed Ross2012-07-262-0/+132
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1366020 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4165: Fix unsused variable warnings when compiling with -DNDEBUGAlan Conway2012-07-243-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1365234 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix typos, update comments, update log messages.Alan Conway2012-07-238-15/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1364806 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4163: Deadlock between LinkRegistry and TimerTask locksAlan Conway2012-07-232-10/+12
| | | | | | | | Previously TimerTask::cancel was being called with locks held in this stack trace, causing a deadlock. Moved call to cancel outside of the lock. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1364805 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4159: HA Missing messages in failover test.Alan Conway2012-07-233-10/+27
| | | | | | | | | | | | QueueGuard was taking its snapshot of the initial queue range *before* it registered its QueueObserver. That means it was possible to have unguarded messages between the end of the snapshot and the first position protected by the guard. Fixed race condition in QueueRange constructor: Must call getPosition() *after* getFront() since both may be advancing and we want to end up with a valid range front <= back+1. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1364804 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix spurious diff when comparing cluster log files.Michael Goulish2012-07-231-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1364648 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4158: HA transition to CATCHUP status too early.Alan Conway2012-07-191-16/+4
| | | | | | | | | Previously we set status to CATCHUP when the BrokerReplicators bridge was initialized. This is too early, it's possible for an aborted attempt to connect to another backup to get as far as bridge init. This patch waits till we receive the first actual message from the primary before updating status to CATCHUP. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1363520 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4156: HA close window for clients to connect before HA broker is ↵Alan Conway2012-07-193-10/+31
| | | | | | | | | | | | | initialized A HA backup broker in a cluster rejects client connections. This was previously done in a ConnectionObserver registered during Plugin::initialize. However that left a window before the observer was registered when clients could connect. This showed up as a sporadic failure of the failover test. This patch moves the creation of the observer to Plugin::earlyInitialize, which is guaranteed to be called before the broker starts listening for clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1363498 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed use of boost::bind which was causing build failure on windows.Alan Conway2012-07-181-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1363088 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA Minor logging improvements.Alan Conway2012-07-182-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1363047 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4148: HA Not setting initial queues for new RemoteBackups Alan Conway2012-07-183-14/+21
| | | | | | | | Fix bug introduced by r1362584: "QPID-4144 HA broker deadlocks on broker::QueueRegistry lock and ha::Primary lock" Stopped setting initial queues on new (i.e. not expected) RemoteBackups. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1363014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4145: HA Minor fixes to recovery Alan Conway2012-07-177-27/+44
| | | | | | | | | - Demote timed-out backups from ready to catch-up. - Don't cancel connected backups on timeout, only disconnected ones. - Don't allow promotion of a catch-up broker. - Minor logging improvement. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362658 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added missing EXTERN statements causing build breakage.Alan Conway2012-07-171-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362635 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4144 HA broker deadlocks on broker::QueueRegistry lock and ha::Primary lockAlan Conway2012-07-175-52/+44
| | | | | | | | | | | | Running tests repeatedly, the broker deadlocked with the attached stack trace. The problem call sequences are: 1. QueueRegistry::destroy takes QueuerRegistry lock > ConfigurationObserver::queueDestroy > ha::Primary::queueDestroy takes Primary lock. 2. ConnectionObserver::opened cals Primary::opened lock> RemoteBackup>getQueues().eachQueue This patch breaks the deadlock at both ends: QueueRegistry no longer holds the lock across the observer call and Primary does not hold the lock across eachQueue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362584 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix typo in make files.Alan Conway2012-07-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362104 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3892 add missing fileCharles E. Rolke2012-07-161-0/+89
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4107 r1361334 type in file nameCharles E. Rolke2012-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1361733 13f79535-47bb-0310-9956-ffa450edef68