Skip to content

IGNITE-17302 add the propagation of the maximal storages' lastAppliedIndex on onSnapshotSave#1263

Merged
tkalkirill merged 15 commits intoapache:mainfrom
gridgain:ignite-17302
Oct 28, 2022
Merged

IGNITE-17302 add the propagation of the maximal storages' lastAppliedIndex on onSnapshotSave#1263
tkalkirill merged 15 commits intoapache:mainfrom
gridgain:ignite-17302

Conversation

@alievmirza
Copy link
Contributor

Comment on lines 293 to 297
// We need to take the max index here because otherwise there is a scenario on a node restart when a node will install
// snapshot instead of starting even if all data is presented. This might happen because a raft log is truncated up
// to the maximal index among storages after a snapshot is done in raft,
// and because we take minimal applied index among storages for the local recovery. In case of a cluster restart,
// it is possible that cluster even can't start, if we won't take max index.
Copy link
Contributor

@ibessonov ibessonov Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very convoluted description, maybe even wrong partially, please change it. I don't think that mentioning leader (installing snapsho) is necessary here. This code is required for local recovery only and a possible scenario of false node failure when we actually have all required data

@tkalkirill tkalkirill merged commit 81e4645 into apache:main Oct 28, 2022
@tkalkirill tkalkirill deleted the ignite-17302 branch October 28, 2022 12:55
ivgag pushed a commit to unisonteam/ignite-3 that referenced this pull request Nov 4, 2022
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants