You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/05/23 06:30:00 UTC

[jira] [Commented] (RATIS-244) MD5 file might not exist for snapshot file

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

ASF GitHub Bot commented on RATIS-244:
--------------------------------------

GitHub user andy2git opened a pull request:

    https://github.com/apache/incubator-ratis/pull/2

    RATIS-244. Skip snapshot file if MD5 file does not exist

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andy2git/incubator-ratis master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-ratis/pull/2.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2
    
----
commit 36d9459e674b4de245450c2a49991741da02cfb3
Author: Andy Wu <an...@...>
Date:   2018-05-23T06:28:30Z

    RATIS-244. Skip snapshot file if MD5 does not exist

----


> MD5 file might not exist for snapshot file
> ------------------------------------------
>
>                 Key: RATIS-244
>                 URL: https://issues.apache.org/jira/browse/RATIS-244
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Andy Wu
>            Assignee: Andy Wu
>            Priority: Minor
>
> When we take snapshots, a copy of snapshot file and its MD5 file are persisted on disk. But they are not atomic operation. In some condition, we might have a partial snapshot file persisted on disk. While we need to SimpleStateMachineStorage#findLatestSnapshot(), we should skip the snapshot files without MD5.



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