SzyWilliam opened a new pull request, #958:
URL: https://github.com/apache/ratis/pull/958

   see https://issues.apache.org/jira/browse/RATIS-1927.
   
   The `LastAppliedTermIndex` may be updated in the middle of the `check` and 
`enqueue` operations. 
   Normally this data race is not a big deal since the next increment in 
AppliedIndex will complete the waiting entry. 
   However, After IOTDB restarts, there will be no subsequent read/write 
requests unless the first probing read request successfully returns. Under 
situations like that, this data race may haunt the system several seconds until 
reaching timeout.
   
   I added a post-double-check as a quick fix instead of implementing 
synchronization.
   


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

Reply via email to