diff options
| author | Alan Conway <aconway@apache.org> | 2010-06-22 13:29:52 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-06-22 13:29:52 +0000 |
| commit | a49decc7d56bdb704a5d1580058c0da57e9a9353 (patch) | |
| tree | af0acf1f9e7e5f48336407ae438e11528db75b38 /cpp/src/qpid/cluster/Cluster.h | |
| parent | 265841a55cca55a7d3f8eea1d9e9c24a5fc2e350 (diff) | |
| download | qpid-python-a49decc7d56bdb704a5d1580058c0da57e9a9353.tar.gz | |
Fix cluster broker crashes when management is active.
Cluser brokers were exiting with errors "modified cluster state
outside cluster context" and "confirmed < (50+0) but only sent < (49+0)"
Fix was to:
- delay completion of incoming update till update connection closes.
- delay addding new connections to managment until connection is announced.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956882 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Cluster.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.h b/cpp/src/qpid/cluster/Cluster.h index 0d8b55cf01..84dee27e94 100644 --- a/cpp/src/qpid/cluster/Cluster.h +++ b/cpp/src/qpid/cluster/Cluster.h @@ -97,6 +97,7 @@ class Cluster : private Cpg::Handler, public management::Manageable { void leave(); // Update completed - called in update thread + void updateInClosed(); void updateInDone(const ClusterMap&); void updateInRetracted(); @@ -277,7 +278,7 @@ class Cluster : private Cpg::Handler, public management::Manageable { bool lastBroker; sys::Thread updateThread; boost::optional<ClusterMap> updatedMap; - bool updateRetracted; + bool updateRetracted, updateClosed; ErrorCheck error; UpdateReceiver updateReceiver; ClusterTimer* timer; |
