activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: ReplicatedLevelDb / Not enough cluster members connected to elect a new master.
Date Tue, 16 Jul 2013 11:04:18 GMT
Yep good catch!

On Tuesday, July 16, 2013, Marc Ende wrote:

> Aaaarg... Okay I've found the point myself:
>
> Within the docs: *"All the broker nodes that are part of the same
> replication set
> should have matching brokerName XML attributes."*
>
> Now I've got it...
>
> Thanks for your help, Christian!
>
> Marc
>
> Am Dienstag, 16. Juli 2013, 07:04:36 schrieb Marc Ende:
> > I've updated to the latest one (apache-activemq-5.9-20130711.133644-74-
> > bin.tar.gz) but with no success.
> >
> > I've changed only three points in the vanilla activemq.xml:
> > a) I've commented out the inclusion of jetty at the bottom of the file.
> (I
> > don't need the web-app)
> > b) I've changed the brokerName to www01, www03 and www03 (each in the
> > related file)
> > c) I've pasted in (and replaced the default one) the
> > <persistenceAdapter>...</persistenceAdapter> part.
> >
> > I've turned on logging thats what happend after restarting the second
> node:
> >
> > 2013-07-16 06:58:36,585 | DEBUG | Got ping response for sessionid:
> > 0x33fe1f2d41f0004 after 9ms | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:37,919 | DEBUG | Got ping response for sessionid:
> > 0x33fe1f2d41f0004 after 8ms | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | Got notification
> > sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
> state:SyncConnected
> > type:NodeDeleted path:/activemq/leveldb-stores/00000000054 for sessionid
> > 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> > treeWatcher: type=NodeDeleted, state=SyncConnected |
> > org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> > 2013-07-16 06:58:39,171 | DEBUG | Got notification
> > sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> stop
> > tracking node | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker |
> main-
> > EventThread
> > 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
> state:SyncConnected
> > type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
> > 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,181 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 17,4  replyHeader:: 17,34359738434,-101
>  request::
> > '/activemq/leveldb-stores/00000000054,T  response::   |
> > org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,181 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] *no
> > such node* | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
> > EventThread
> > 2013-07-16 06:58:39,182 | INFO  | Not enough cluster members connected
> to
> > elect a master. | org.apache.activemq.leveldb.replicated.MasterElector |
> > main- EventThread
> > 2013-07-16 06:58:39,183 | DEBUG | [/activemq/leveldb-stores]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> > treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
> > org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> > 2013-07-16 06:58:39,192 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 18,4  replyHeader:: 18,34359738434,0  request::
> > '/activemq/leveldb-stores,T  response::
> >
> ,s{21474836483,21474836483,1373541435591,1373541435591,0,111,0,0,0,
> > 3,34359738434}  | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,220 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 19,12  replyHeader:



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message