QPID-3767: add additional test case for link sharing.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342442 13f79535-47bb-0310-9956-ffa450edef68
QPID-4012: update the priority queue entry sub lists to maintain a record of the priority index they represent, refer to this when comparing queue entries in order to avoid using the metadata later than is possible

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342667 13f79535-47bb-0310-9956-ffa450edef68
QPID-4006: [Java Broker] BDB HA.

Close BDB environment in the event of unexpected exceptions during commit/begin tran.
Install BDB exception listener to log exception arising from its own threads.
Default BDB parameters for sensible defaults for standard Qpid use-cases.
Ensure that closeInternal always closes the environment.
Added MBean operation descriptions.

Work of Robbie Gemmell <robbie@apache.org> and myself.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342712 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: fix some defects found by Coverity static analysis scan of C++ code

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342742 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: eliminate dead code and potential null pointer dereference as found by Coverity

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342759 13f79535-47bb-0310-9956-ffa450edef68
QPID-3995 - Cleans up queues created during Cucumber feature tests 
Applied patch from Darryl Pierce


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342786 13f79535-47bb-0310-9956-ffa450edef68
QPID-3992 - Removed the Boost license text from the Ruby LICENSE file.
Applied patch from Darryl Pierce.


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342788 13f79535-47bb-0310-9956-ffa450edef68
QPID-3936: Java Performance Test Framework - better PSFC support

Change ProducerParticipant to cancel the sending test messages after maximumDuration is reached.  This is required for
deterministic behaviour when using the Producer Side Flow Control feature of the Java Broker, otherwise the send() can
hang indefinitely after consumers have shutdown.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342843 13f79535-47bb-0310-9956-ffa450edef68
QPID-3936: Java Performance Test Framework.

Fix test highlighed by JDK1.7 build on Apache CI - test approach incompatible with the Junit lifecycle.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342861 13f79535-47bb-0310-9956-ffa450edef68
QPID-3997: AuthenticationManagers not cleaned up on error path

We have been seeing ApplicationRegistryShutdownTest fail regularly on JDK1.7 on Jenkins CI for the last week.  This is caused by the ApplicationRegistry
failing to clean up on the error path where many AuthenticationManagers are configured but one is not designated as default.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342886 13f79535-47bb-0310-9956-ffa450edef68
QPID-4023: restore connection URL setter, add check that URL details have been set before calling connect(), add unit+sys test to verify operation

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343220 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Allow Queue::setPosition() to truncate the queue.

In the new HA code a backup may sometimes be ahead of the new primary after a
fail-over. In that case the backup truncates it's queues to the same position
as the primary so it can continue replicating.

(Note the assertions added to verify setPosition showed up a minor bug in the
old cluster code, which was leaving messages on the cluster update queue after
an update.  This patch fixes the issue.)

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343347 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Close replication link when a backup broker is promoted to primary.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343348 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: HA brokers avoid self-connection.

HA brokers attempt to avoid self-connection using SystemInfo::isLocalHost(). If
a VIP is used then this check won't work. Brokers now check the system-id UUID
on incoming connections and reject the connection if it is their own.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343349 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Failover optimization restored.

A backup broker that fails over to a new primary can avoid downloading messages
that it already has from the previous primary. The backup sends its position to
the primary as a client-arg and the primary sends back any necessary dequeues
and starts replicating after the messages on the backup.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343350 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Better log messages for HA code.

Identify host name of backup in ReplicatingSubscription logs.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343351 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Add timerTask->cancel to ~AsynchIOHandler.

Observed crashes where timer fires after AsynchIOHandler is deleted.
This should prevent such crashes.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343397 13f79535-47bb-0310-9956-ffa450edef68
QPID-3986: Improved tests and resolved some potential thread-safety issues

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com>

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343675 13f79535-47bb-0310-9956-ffa450edef68
QPID-4009: Make failover method invocation timeout configurable for 0-8/0-9/0-9-1 amqp clients

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com>

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343677 13f79535-47bb-0310-9956-ffa450edef68
QPID-4017: reset the session flow control blocked status during failover.

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com>

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343678 13f79535-47bb-0310-9956-ffa450edef68