mirror of https://github.com/apache/activemq.git
Adding more debug info to help trouble shoot election issues with leveldb replication elections.
This commit is contained in:
parent
887ac0ba49
commit
8804341c19
|
@ -181,7 +181,9 @@ class ElectingLevelDBStore extends ProxyLevelDBStore {
|
||||||
|
|
||||||
val zk_group = ZooKeeperGroupFactory.create(zk_client, zkPath)
|
val zk_group = ZooKeeperGroupFactory.create(zk_client, zkPath)
|
||||||
val master_elector = new MasterElector(this)
|
val master_elector = new MasterElector(this)
|
||||||
|
debug("Starting ZooKeeper group monitor")
|
||||||
master_elector.start(zk_group)
|
master_elector.start(zk_group)
|
||||||
|
debug("Joining ZooKeeper group")
|
||||||
master_elector.join
|
master_elector.join
|
||||||
|
|
||||||
this.setUseLock(true)
|
this.setUseLock(true)
|
||||||
|
|
|
@ -90,6 +90,8 @@ class MasterElector(store: ElectingLevelDBStore) extends ClusteredSingleton[Leve
|
||||||
}
|
}
|
||||||
|
|
||||||
def changed:Unit = elector.synchronized {
|
def changed:Unit = elector.synchronized {
|
||||||
|
debug("ZooKeeper group changed: %s", members)
|
||||||
|
|
||||||
// info(eid+" cluster state changed: "+members)
|
// info(eid+" cluster state changed: "+members)
|
||||||
if (isMaster) {
|
if (isMaster) {
|
||||||
// We are the master elector, we will choose which node will startup the MasterLevelDBStore
|
// We are the master elector, we will choose which node will startup the MasterLevelDBStore
|
||||||
|
|
Loading…
Reference in New Issue