QPID-4082: cluster de-sync after broker restart & queue replication

Having queue state replication between 2 clusters, restarting a broker in both
source+destination clusters sometimes leads to cluster de-sync. No QMF
communication is involved, though symptoms are similar to the bug caused by
missing propagation of QMF errors within a cluster.

The bug is caused by "deliveryCount" in SemanticState::ConsumerImpl
(qpid/broker/SemanticState.cpp) not being replicated to a joining cluster node
during catch-up. When the elder broker in src.cluster sends session.sync() after
sending 5 messages (per --ack 5 in qpid-route), the recently joiner node in
src.cluster does not do so, what leads to the cluster de-sync.

The patch:

 - adds to "consumer-state" method (see xml/cluster.xml file change) to update a new joi-ner a new property deliveryCount
 - updates cluster::Connection::consumerState to send deliveryCount to the method
 - updates cluster::Connection::consumerState to set the received deliveryCount
 - add two methods to broker::SemanticState::ConsumerImpl for getting and setting deliveryCount

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352588 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA 0.18 release - add an EXTRA_DIST file required for windows builds

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352646 13f79535-47bb-0310-9956-ffa450edef68
QPID-4081: [Java Tests] Applied patch supplied by Alex Rudyy

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352838 13f79535-47bb-0310-9956-ffa450edef68
QPID-4075: Raise delete event for autodeleted queues also

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352874 13f79535-47bb-0310-9956-ffa450edef68
QPID-4075: Added missing test file from last commit

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352987 13f79535-47bb-0310-9956-ffa450edef68
QPID-3849: Client connection breaks broker-to-broker cluster SASL authentication 

Catch-up shadow connections were not being authenticated which caused two problems:
- new brokers failed to join the cluster if there was an authenticated session.
- possible security loophole that would allow an intruder to gain access to a catch-up broker.

All external connections are now fully authenticated, which solves both problems.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352992 13f79535-47bb-0310-9956-ffa450edef68
QPID-4078: Fix primary self-connections in long running test.

Assert to detect self-connection were triggered in log runs of ha_tests.py
test_failover_send_receive. Fix:

- HaBroker close backup link before removing broker-info for outgoing link.
- HaBroker removes own address from failover addresses.
- Link.cpp: Skip ioThreadProcessing and maintenanceVisit on a link that is closed.
- Minor improvements to log messages and comments.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352999 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Cleanup in HA code.

- Better printed representation for queue ranges.
- Removed dead code in ha module related to activated/deactivated backups.
- Improved log messages in ha/BrokerReplicator.cpp

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353000 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Simplify locking and remove member-update callback in HA code.

Get rid of the separate Membership lock and put HaBroker in control of
membership changes. Removes a potential deadlock which could explain
some observed failures in long-running failover tests.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353001 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Trivial code cleanup, removing outdated FIXME comments.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353017 13f79535-47bb-0310-9956-ffa450edef68
QPID-4080: restore connectdelay to previous value and increase retries

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353594 13f79535-47bb-0310-9956-ffa450edef68
QPID-4075: Exclude qmf_events from java/python tests

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353860 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: increase test timeout

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353921 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix build error on windows, introduced in r1352992

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354012 13f79535-47bb-0310-9956-ffa450edef68
QPID-3902 force [Test] log category into test instance

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354040 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: ensure test cleans up when done to prevent interference with anything else

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354588 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Make qmf/BrokerImportExport.h header public

QMF code generator templates include this header so it is required to build QMF
generated code against the -devel packages.

Review: https://reviews.apache.org/r/5593/

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354712 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: ha_tests.py raise exception for errors in qpid-ha

Refactored qpid-ha to raise exceptions if invoked via main_except
and return non-0 with an error message if invoked as a script via main

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354717 13f79535-47bb-0310-9956-ffa450edef68
QPID-4091 : [Java Broker] correct handling of dtx set timeout

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354728 13f79535-47bb-0310-9956-ffa450edef68
QPID-4091 : [Java Broker] correct handling of dtx set timeout

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