You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by bpoppa <ji...@gmail.com> on 2014/02/05 03:42:14 UTC
replicatedLevelDB not replicating messages
So I have the replicatedLevelDB configured and working using the example on
the activeMQ site. Zookeeper is running, when I take a broker down, it
detects and fires up on one of the others in the cluster. My issue is
this....it's just not replicating. When I send messages to the queue, I can
see it on the master, but if I were then to fail the master, the new master
has none of the previous data. Also, looking in the activemq.log, I see
nothing that shows any replication of messages.
I feel like I am missing a simple piece. Any thoughts?
Thanks!
Jim
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by kal123 <kp...@gmail.com>.
this is similar error I saw after failovers.. you can try the latest
snapshots seems much better except for one issue.. see
http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-Store-getting-EOF-exception-td4676541.html
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677474.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by kal123 <kp...@gmail.com>.
which version you are using? getting error after failover? I saw some
exception during testing with 5.9 most of them are fixed in 5.10 snapshot.
Any other exception or stack trace prior to this?
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677472.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by bpoppa <ji...@gmail.com>.
Actually its weird. It worked from the admin ui but not from my client
passing in the persistent flag.
On top of that I am now having another issue. Whenever I send a message to
the queue, the master errors out.
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677469.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by bpoppa <ji...@gmail.com>.
There were not before. I submitted a persistent one and now it works. Did
not know that, thanks!
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677465.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by Noel OConnor <no...@gmail.com>.
hmmm can you check if the messages are being sent persistently ?
On Wed, Feb 5, 2014 at 3:13 PM, bpoppa <ji...@gmail.com> wrote:
> I do. Here is my config:
>
> <persistenceAdapter>
> <replicatedLevelDB directory="activemq-data" replicas="3"
> bind="tcp://10.240.242.233:61619" hostname="10.240.242.233"
> zkAddress="10.240.142.24:2181,10.240.242.233:2181,10.240.211.220:2181"
> zkPath="/activemq/leveldb-stores" sync="quorum_disk" />
> </persistenceAdapter>
>
>
> I see initial syncs, including old deleted queues, but thats it. Nothing
> when anything is added to the queue:
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677448.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Re: replicatedLevelDB not replicating messages
Posted by bpoppa <ji...@gmail.com>.
I do. Here is my config:
<persistenceAdapter>
<replicatedLevelDB directory="activemq-data" replicas="3"
bind="tcp://10.240.242.233:61619" hostname="10.240.242.233"
zkAddress="10.240.142.24:2181,10.240.242.233:2181,10.240.211.220:2181"
zkPath="/activemq/leveldb-stores" sync="quorum_disk" />
</persistenceAdapter>
I see initial syncs, including old deleted queues, but thats it. Nothing
when anything is added to the queue:
--
View this message in context: http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444p4677448.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: replicatedLevelDB not replicating messages
Posted by Noel OConnor <no...@gmail.com>.
Have you set the hostname and bind addresses ?
Is there anything in the slave log files ?
This is config that I've used a while ago
<persistenceAdapter>
<replicatedLevelDB directory="../data/leveldb/amq"
replicas="4"
zkAddress="10.64.132.40:2182,10.64.132.40:2183,
10.64.132.40:2184"
zkPassword="admin"
zkPath="/fabric/registry/clusters/fusemq-replication-elections/default"
securityToken="admin"
sync="quorum_disk"
weight="90"
hostname="10.64.132.148"
bind="tcp://10.64.132.148:61619"
/>
</persistenceAdapter>
hth
On Wed, Feb 5, 2014 at 1:42 PM, bpoppa <ji...@gmail.com> wrote:
> So I have the replicatedLevelDB configured and working using the example on
> the activeMQ site. Zookeeper is running, when I take a broker down, it
> detects and fires up on one of the others in the cluster. My issue is
> this....it's just not replicating. When I send messages to the queue, I
> can
> see it on the master, but if I were then to fail the master, the new master
> has none of the previous data. Also, looking in the activemq.log, I see
> nothing that shows any replication of messages.
>
> I feel like I am missing a simple piece. Any thoughts?
>
> Thanks!
>
> Jim
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/replicatedLevelDB-not-replicating-messages-tp4677444.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>