You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2019/07/09 18:09:00 UTC

[jira] [Commented] (RATIS-616) StateMachineUpdater#takeSnapshot should be moved into a thread.

    [ https://issues.apache.org/jira/browse/RATIS-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881447#comment-16881447 ] 

Tsz Wo Nicholas Sze commented on RATIS-616:
-------------------------------------------

Hi [~msingh], it is by design that takeSnapshot blocks the StateMachineUpdater thread.  If StateMachineUpdater is applying transaction, the state will be mutating while taking a snapshot. 

> StateMachineUpdater#takeSnapshot should be moved into a thread.
> ---------------------------------------------------------------
>
>                 Key: RATIS-616
>                 URL: https://issues.apache.org/jira/browse/RATIS-616
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 0.3.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>             Fix For: 0.4.0
>
>
> StateMachineUpdater#takeSnapshot blocks the StateMachineUpdater thread, this takeSnapshot call should be moved to a different thread.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)