activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Chen (JIRA)" <>
Subject [jira] Commented: (AMQ-1825) Pure MasterSlave doesn't work
Date Thu, 09 Apr 2009 17:51:34 GMT


Michael Chen commented on AMQ-1825:

This has to do with NOT using the <broker waitForSlave="true" ... > setting. The steps
to reproduce are:

1. Start master (waitForSlave=false).
2. Let some client connect and send messages to a topic or queue.
3. Start the slave.
4. Send more messages, which will produce the following on the SERVER side log:

ERROR MasterBroker                   - Slave Failed
java.lang.IllegalStateException: Cannot lookup a producer from a connection that had not been
registered: ID:mwcs-37256-1237566087493-0:0
        at org.apache.activemq.command.ActiveMQMessage.visit(
        at org.apache.activemq.transport.ResponseCorrelator.onCommand(
        at org.apache.activemq.transport.TransportFilter.onCommand(
        at org.apache.activemq.transport.vm.VMTransport.iterate(
        at org.apache.activemq.thread.DedicatedTaskRunner.runTask(
        at org.apache.activemq.thread.DedicatedTaskRunner$

The master still functions normally, but it keep receiving the above complain from the slave
on every replication. It seems that there is no "state replication" from the master to the
slave when the slave first attached. I suspect this is a design flaw that must be plugged.

The only remedy is to use the <broker waitForSlave="true" ... > setting. Unfortunately,
this degrades the pure master/slave significantly. If either the master or the slave is down,
there is no way to restore the down node without shutting down the running node.  This means
service interruption. The following no-service-interruption-scenarios are NOT possible:

  master_up -> client_connect -> slave_up -> slave_down -> slave_restart

  master_up -> client_connect -> slave_up -> master_down -> slave_become_master
-> master_restart_as_slave

No service interruption is a common expectation of redundancy. This bug is related to bug

> Pure MasterSlave doesn't work
> -----------------------------
>                 Key: AMQ-1825
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0
>            Reporter: Dima
>             Fix For: 5.3.0
> Slave doen't synchronize state with master
> 1.If master has messages which absent in slave, these messages won't replicate ot slave
after attaching slave to master.
> 2.If remove messages via JMX purge() in master, messages in slave won't remove
> 3. If slave has messages wich absent in master, these messages won't remove when slave
is attaching to master

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message