1782935682 opened a new pull request, #10014: URL: https://github.com/apache/rocketmq/pull/10014
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. --> Fixes #10013 ### Brief Description AsyncLearner nodes are designed as read-only backups and should never assume the Master role. Currently, if an AsyncLearner starts and registers before other nodes, it triggers the election process and becomes Master. ###Modifications In the brokerElect() method: 1. Check if the broker is an AsyncLearner. 2. If true, skip the active election request. 3. Instead, proactively fetch replica info from the Controller. 4. Only transition to SLAVE status when a valid Master is found; otherwise, wait/retry. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
