SzyWilliam opened a new pull request, #7115: URL: https://github.com/apache/iotdb/pull/7115
Race condition detected as follows: 1. PartitionRegionStateMachine is initialized. 2. ConsensusManager constructor is called, but not returned. 3. Inside ConsensusManager ctor, RaftServer is initialized in ConsensusManager and start election. 4. Inside ConsensusManager ctor, RaftServer is elected and notifies PartitionRegionStateMachine. 5. PartitionRegionStateMachine starts heartbeat service, which uses ConsensusManager. 6. However, in Step5, ConsensusManager Constructor is not returned, which means the ref is null. It can cause NPE -- 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]
