Skip to content

IGNITE-17983 Fix work with the last applied index in RAFT#1262

Closed
tkalkirill wants to merge 8 commits intoapache:mainfrom
gridgain:ignite-17983
Closed

IGNITE-17983 Fix work with the last applied index in RAFT#1262
tkalkirill wants to merge 8 commits intoapache:mainfrom
gridgain:ignite-17983

Conversation

@tkalkirill
Copy link
Contributor

@Override
public void onSnapshotSave(Path path, Consumer<Throwable> doneClo) {
storage.flush();
CompletableFuture.allOf(storage.flush(), txStateStorage.flush())
Copy link
Contributor

Choose a reason for hiding this comment

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

max index setting is missing

        long maxLastAppliedIndex = Math.max(storage.lastAppliedIndex(), txStateStorage.lastAppliedIndex());
        storage.lastAppliedIndex(maxLastAppliedIndex);
        txStateStorage.lastAppliedIndex(maxLastAppliedIndex);

@tkalkirill tkalkirill closed this Oct 28, 2022
isapego pushed a commit to isapego/ignite-3 that referenced this pull request Dec 26, 2024
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.

2 participants