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 2020/12/03 08:04:43 UTC

[GitHub] [rocketmq] qsrg opened a new issue #2477: The allocate method of AllocateMessageQueueByMachineRoom return error result

qsrg opened a new issue #2477:
URL: https://github.com/apache/rocketmq/issues/2477


   The issue tracker is **ONLY** used for bug report(feature request need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same report before your raise a new one.
   
   Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
   
   Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   when DefaultMQPushConsumer use AllocateMessageQueueByMachineRoom strategy,the allocate method return messageQueues not in designated consumeridcs. this cause consumer consumed messages not in consumeridcs.
   - What did you do (The steps to reproduce)?
   new a DefaultMQPushConsumer,then set allocateMessageQueueStrategy to AllocateMessageQueueByMachineRoom
   - What did you expect to see?
   consumer should consume message only in consumeridcs configed in AllocateMessageQueueByMachineRoom.
   - What did you see instead?
   consumer has consumed messages sent to other idcs(not in consumeridcs)
   2. Please tell us about your environment:
   rocketmq version: 4.3.2
   jdk version: 1.8.0_101
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   
   **FEATURE REQUEST**
   
   1. Please describe the feature you are requesting.
   
   2. Provide any additional detail on your proposed use case for this feature.
   
   2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
   
   4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:
   
   - [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 description here, 
   - [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 description here,
   - ...
   


----------------------------------------------------------------
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.

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



[GitHub] [rocketmq] qsrg commented on issue #2477: The allocate method of AllocateMessageQueueByMachineRoom return error result

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


   @francisoliverlee no error log, just the allocate result is wrong. **This causes consumer consumed messages not in consumeridcs.**
   reproduce step:
   1. new a DefaultMQPushConsumer
   2. new a AllocateMessageQueueByMachineRoom, and config consumeridcs
   3. set consumer's allocateMessageQueueStrategy to AllocateMessageQueueByMachineRoom
   4. subscribe a topic and start consumer。
   
   BTW,your broker name should follow  the naming style "idc@brokername", as AllocateMessageQueueByMachineRoom will split by "@" to get idc. Otherwise you can write code to get your idc rightly.


----------------------------------------------------------------
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.

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



[GitHub] [rocketmq] francisoliverlee commented on issue #2477: The allocate method of AllocateMessageQueueByMachineRoom return error result

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


   can you show more details, such as error log, how to reproduce the error


----------------------------------------------------------------
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.

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



[GitHub] [rocketmq] RongtongJin closed issue #2477: The allocate method of AllocateMessageQueueByMachineRoom return error result

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #2477:
URL: https://github.com/apache/rocketmq/issues/2477


   


----------------------------------------------------------------
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.

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



[GitHub] [rocketmq] qsrg commented on issue #2477: The allocate method of AllocateMessageQueueByMachineRoom return error result

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


   I have solved this problem. #2478 


----------------------------------------------------------------
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.

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