LittleBoy18 opened a new issue, #7620: URL: https://github.com/apache/rocketmq/issues/7620
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment k8s环境使用nfs存储 ### RocketMQ version 5.1.0 ### JDK Version _No response_ ### Describe the Bug 2023-12-06 11:54:45 INFO StateMaintainer - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n0","term":15,"voteResult":"REJECT_ALREADY_VOTED"} 2023-12-06 11:54:45 INFO NettyClientPublicExecutor_2 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n2","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:45 INFO NettyClientPublicExecutor_1 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n1","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:45 INFO StateMaintainer - [n0] [PARSE_VOTE_RESULT] cost=301 term=15 memberNum=3 allNum=3 acceptedNum=0 notReadyTermNum=0 biggerLedgerNum=0 alreadyHasLeader=true maxTerm=15 result=WAIT_TO_REVOTE 2023-12-06 11:54:46 INFO QuorumAckChecker-n0 - [n0][CANDIDATE] term=15 ledgerBegin=0 ledgerEnd=28144 committed=28144 watermarks={} 2023-12-06 11:54:49 INFO QuorumAckChecker-n0 - [n0][CANDIDATE] term=15 ledgerBegin=0 ledgerEnd=28144 committed=28144 watermarks={} 2023-12-06 11:54:52 INFO StateMaintainer - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n0","term":15,"voteResult":"REJECT_ALREADY_VOTED"} 2023-12-06 11:54:52 INFO NettyClientPublicExecutor_2 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n2","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:52 INFO NettyClientPublicExecutor_1 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n1","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:52 INFO StateMaintainer - [n0] [PARSE_VOTE_RESULT] cost=5 term=15 memberNum=3 allNum=3 acceptedNum=0 notReadyTermNum=0 biggerLedgerNum=0 alreadyHasLeader=true maxTerm=15 result=WAIT_TO_REVOTE 2023-12-06 11:54:52 INFO QuorumAckChecker-n0 - [n0][CANDIDATE] term=15 ledgerBegin=0 ledgerEnd=28144 committed=28144 watermarks={} 2023-12-06 11:54:55 INFO QuorumAckChecker-n0 - [n0][CANDIDATE] term=15 ledgerBegin=0 ledgerEnd=28144 committed=28144 watermarks={} 2023-12-06 11:54:58 INFO QuorumAckChecker-n0 - [n0][CANDIDATE] term=15 ledgerBegin=0 ledgerEnd=28144 committed=28144 watermarks={} 2023-12-06 11:54:59 INFO StateMaintainer - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n0","term":15,"voteResult":"REJECT_ALREADY_VOTED"} 2023-12-06 11:54:59 INFO NettyClientPublicExecutor_1 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n2","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:59 INFO NettyClientPublicExecutor_2 - [n0][GetVoteResponse] {"code":200,"group":"RaftNode0","leaderId":"n0","localId":"n0","remoteId":"n1","term":15,"voteResult":"REJECT_ALREADY_HAS_LEADER"} 2023-12-06 11:54:59 INFO StateMaintainer - [n0] [PARSE_VOTE_RESULT] cost=4 term=15 memberNum=3 allNum=3 acceptedNum=0 notReadyTermNum=0 biggerLedgerNum=0 alreadyHasLeader=true maxTerm=15 result=WAIT_TO_REVOTE 2023-12-06 11:55:00 INFO NettyServerPublicExecutor_1 - [n0][ChangeRoleToFollower] from term: 15 leaderId: n1 and currTerm: 15 ### Steps to Reproduce 使用nfs存储,重启从节点,查日志可以发现从开始选举到change to follower持续了15s左右 ### What Did You Expect to See? 选举应该在1到2s ### What Did You See Instead? 选举过程持续了15s ### Additional Context 想了解下选举过程中在做什么,为什么这么慢 这个过程中执行了定时任务触发注册broker到namesrv,由于还没有change to follower会注册一个id为 -1 的broker到namesrv中 -- 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-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org