[
https://issues.apache.org/jira/browse/RATIS-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919833#comment-16919833
]
Tsz Wo Nicholas Sze commented on RATIS-659:
-------------------------------------------
Good catch on the bug!
+1 patch looks good.
> StateMachineUpdater#stopAndJoin might not take snapshot due to race condition
> -----------------------------------------------------------------------------
>
> Key: RATIS-659
> URL: https://issues.apache.org/jira/browse/RATIS-659
> Project: Ratis
> Issue Type: Bug
> Reporter: Lokesh Jain
> Assignee: Lokesh Jain
> Priority: Major
> Attachments: RATIS-659.001.patch
>
>
> StateMachineUpdater might not take snapshot during close. This might happen
> if the StateMachineUpdater#stopAndJoin is called right after the snapshot
> check in StateMachineUpdater:156-162.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)