OneSizeFitsQuorum opened a new pull request, #12143:
URL: https://github.com/apache/iotdb/pull/12143

   SimpleConsensus triggers the start and notifyLeaderReady functions of 
SimpleConsensusImpl before the consensusGroup in the map has been written. In 
the initialization logic of some asynchronous calls, if it is executed fast 
enough, SimpleConsensus may still have a map size of 0, causing an error to 
fail startup.
   
   The fix is as simple as calling start after a successful put


-- 
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: reviews-unsubscr...@iotdb.apache.org

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

Reply via email to