You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/03/29 11:01:44 UTC

[GitHub] [rocketmq] cserwen opened a new issue #4056: [POP] MessageRequestModeMap is not being synchronized to the slave node

cserwen opened a new issue #4056:
URL: https://github.com/apache/rocketmq/issues/4056


   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   Use mqadmin to setConsumeMode as `POP`:
   ```bash
   sh mqadmin setConsumeMode -c rocketmq_cluster -n localhost:9876 -t topic -g consumer -m POP -n -1
   ```
   - What is expected to see?
   It should be created in slave node, too or be synchronized to the slave node just like `subscriptionGroup.json`.
   
   - What did you see instead?
   The messageRequestMode.json is only created on the master node. 
   
   2. Please tell us about your environment:
   
   
   4. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
   There are two ways to fix it.
   - The slave node synchronizes it from the master node.
   https://github.com/apache/rocketmq/blob/18287f64cf518ff59bc12c2f8a71bda88de750f7/broker/src/main/java/org/apache/rocketmq/broker/slave/SlaveSynchronize.java#L48
   - use mqAdmin to create it in all brokers just like demo:
   https://github.com/apache/rocketmq/blob/a17fa7605cfbd266e4468e6fe2d6cf6711572111/example/src/main/java/org/apache/rocketmq/example/simple/PopPushConsumer.java#L41
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] cserwen commented on issue #4056: [POP] MessageRequestModeMap is not being synchronized to the slave node

Posted by GitBox <gi...@apache.org>.
cserwen commented on issue #4056:
URL: https://github.com/apache/rocketmq/issues/4056#issuecomment-1081733464


   @odbozhou  Which way do you think is better?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org