[ 
https://issues.apache.org/jira/browse/IGNITE-28202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roman Puchkovskiy updated IGNITE-28202:
---------------------------------------
    Description: Some Raft commands do not update last applied index on 
application. This results in a gap between last applied index from the point of 
view of JRaft and the point of view of the state machine. For example, if a 
command with index 15 does not update last applied index in storage, the 
storage has index 14, but JRaft thinks that it's 15. If, at this point, a 
snapshot is taken on the JRaft node, the storage will persist 14, but log 
storage will truncate everything up to (and including) 15, so its first index 
will be 16. If, after that, a node is restarted, it finds 14 in storage, so its 
startup snapshot will think it includes data up to 14, but log storage will 
think it starts with 16. JRaft will note the gap and will throw an exception. 
The node will not be able to start.

> Gap between snapshot and log indexes in Metastorage
> ---------------------------------------------------
>
>                 Key: IGNITE-28202
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28202
>             Project: Ignite
>          Issue Type: Bug
>          Components: metastorage ai3
>            Reporter: Roman Puchkovskiy
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>
> Some Raft commands do not update last applied index on application. This 
> results in a gap between last applied index from the point of view of JRaft 
> and the point of view of the state machine. For example, if a command with 
> index 15 does not update last applied index in storage, the storage has index 
> 14, but JRaft thinks that it's 15. If, at this point, a snapshot is taken on 
> the JRaft node, the storage will persist 14, but log storage will truncate 
> everything up to (and including) 15, so its first index will be 16. If, after 
> that, a node is restarted, it finds 14 in storage, so its startup snapshot 
> will think it includes data up to 14, but log storage will think it starts 
> with 16. JRaft will note the gap and will throw an exception. The node will 
> not be able to start.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to