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/01/11 06:22:00 UTC

[jira] [Commented] (RATIS-460) Once a snapshot is created an exception will be thrown when reply entries after restarting cluster

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

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

Thanks [~alanwu1009] for filing this bug.

> ...  I found an assertion statement is added by Tsz-Wo ...

The assertion was already there before RATIS-368; https://github.com/apache/incubator-ratis/commit/2272086a5aebb65a7b0bfe1de59087641b96609f

Anyway, let me check if the assertion is a bug.

> Once a snapshot is created an exception will be thrown when reply entries after restarting cluster
> --------------------------------------------------------------------------------------------------
>
>                 Key: RATIS-460
>                 URL: https://issues.apache.org/jira/browse/RATIS-460
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 0.4.0
>            Reporter: Alan Wu
>            Priority: Major
>
> I don't know if this is a bug, I looked at the changeset of ...ratis/server/impl/ConfigurationManager.java, in line 52-56, I found an assertion statement is added by Tsz-Wo to check whether the last entry index is less than current entry index if so, will throw an exception, but when I enable snapshot function, this kind of exception will always be thrown.



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