QPID-4114: broker release now includes BDB if optional=true sys property is set
    
Applied patch from Phil Harvey <phil@philharveyonline.com>.

Merged 1359595 from trunk.



git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363396 13f79535-47bb-0310-9956-ffa450edef68
QPID-4131: On 0-8...0-9-1 code path broker now closes the connection when the housekeeping thread times out a transaction. AMQChannel now uses AMQProtocolEngine's _receivedLock so that this connection-closing is thread-safe. This gives better compatibility with older clients that do not hand session closes correctly. 0-10 behaviour unaffected by this change.

Merged 1360651 from trunk.
 


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363403 13f79535-47bb-0310-9956-ffa450edef68
QPID-3998: Add HTTPS support for the REST management interface

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>

merged from trunk r1361239 with test from 1363413


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363418 13f79535-47bb-0310-9956-ffa450edef68
QPID-4138: HA sporadic failure in ha_tests

This was another test issue: trace logging had been left on by mistake, which was
slowing down the tests to the point they were hitting test time-outs.

Also in this patch: Include symbolic satus in membership update log message.

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363485 13f79535-47bb-0310-9956-ffa450edef68
QPID-4144 HA broker deadlocks on broker::QueueRegistry lock and ha::Primary lock

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/branches/0.18@1363486 13f79535-47bb-0310-9956-ffa450edef68
QPID-4145: HA Minor fixes to recovery

- 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/branches/0.18@1363487 13f79535-47bb-0310-9956-ffa450edef68
QPID-4148: HA Not setting initial queues for new RemoteBackups

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/branches/0.18@1363488 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Removed use of boost::bind which was causing build failure on windows.

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363489 13f79535-47bb-0310-9956-ffa450edef68
QPID-4150: Display the name of queue type key(sortKey,priorities,lvqKey) and its value

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>

merged from trunk r1363297


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363809 13f79535-47bb-0310-9956-ffa450edef68
QPID-4149: Add REST functionality to delete exchanges, queues and bindings, add queue/exchange/binding delete operations into web UI

Applied patch from Oleksandr Rudyy <orudyy@gmail.com> and myself.

merged from trunk r1363298


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363810 13f79535-47bb-0310-9956-ffa450edef68
QPID-4151: Add validation for reserved exchange names into addExchange dialog in web management UI

Applied patch from Oleksandr Rudyy <orudyy@gmail.com>

merged from trunk r1363307


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363813 13f79535-47bb-0310-9956-ffa450edef68
QPID-4156: HA close window for clients to connect before HA broker is initialized; merged r1363498

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363839 13f79535-47bb-0310-9956-ffa450edef68
QPID-4155 - Merged from trunk at revision 1363795.


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363845 13f79535-47bb-0310-9956-ffa450edef68
QPID-4158: HA transition to CATCHUP status too early; merged from 1363520

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363852 13f79535-47bb-0310-9956-ffa450edef68
QPID-4155 - Merged from trunk at revision 1363861.


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1363863 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: HA documentation update.

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1364646 13f79535-47bb-0310-9956-ffa450edef68
QPID-4159: HA Missing messages in failover test.

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/branches/0.18@1365044 13f79535-47bb-0310-9956-ffa450edef68
QPID-4163: Deadlock between LinkRegistry and TimerTask locks

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/branches/0.18@1365045 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix typos, update comments, update log messages.

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.18@1365046 13f79535-47bb-0310-9956-ffa450edef68
QPID-4165: Fix unsused variable warnings when compiling with -DNDEBUG

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