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/08/04 02:21:03 UTC

[GitHub] [rocketmq] fujian-zfj opened a new issue, #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

fujian-zfj opened a new issue, #4771:
URL: https://github.com/apache/rocketmq/issues/4771

   **BUG REPORT**
   ![image](https://user-images.githubusercontent.com/10379042/182748195-a0174024-0a6e-49e4-b06a-00816157bbd8.png)
   1.nodes in syncStatusSet  all not available.
   2.enableElectUnCleanMaster = true, slave3 was chosen to be master.
   3.slave4 tried to truncate commitLog.
   4.slave4  was chosen to be master and continued to append new message to commitLog.
   5.consumer started to consume message from consumerOffset.


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

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


[GitHub] [rocketmq] lizhimins commented on issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

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

   We should avoid using EnableElectUncleanMaster.


-- 
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] lizhanhui commented on issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

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

   I believe this is a design flaw. Leader/master nodes shall **ONLY** replicate their WAL logs to their peers/slaves.  All activities, including updates of consume-offsets, should be reflected in the WAL log. Peer nodes and slaves restore state machines by replaying WAL.
   
   The current implementation has more than one replication path, this is the root cause of the discrepancy. 


-- 
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] github-actions[bot] commented on issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4771:
URL: https://github.com/apache/rocketmq/issues/4771#issuecomment-1694527611

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] github-actions[bot] closed issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug
URL: https://github.com/apache/rocketmq/issues/4771


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] github-actions[bot] commented on issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4771:
URL: https://github.com/apache/rocketmq/issues/4771#issuecomment-1690797497

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] RongtongJin commented on issue #4771: In HA mode, if you do not truncate consumerOffsetMap, it may cause a bug

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

   Good catch!  I think we'd better correct consumerOffset while truncating the commitlog. Could you submit a pull request to fix the issue?


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