Skip to content

RATIS-2511. Follower should throw ReadException if it is installing snapshot#1444

Open
ivandika3 wants to merge 3 commits intoapache:masterfrom
ivandika3:RATIS-2511
Open

RATIS-2511. Follower should throw ReadException if it is installing snapshot#1444
ivandika3 wants to merge 3 commits intoapache:masterfrom
ivandika3:RATIS-2511

Conversation

@ivandika3
Copy link
Copy Markdown
Contributor

@ivandika3 ivandika3 commented May 2, 2026

What changes were proposed in this pull request?

When Ratis follower is installing snapshot, its appliedIndex will not advance until the snapshot is installed. This can cause all linearizable follower read on this node to timeout due to the client timeout (default is 3s).

Instead of waiting until the client timeout, Ratis follower can check whether it is currently installing snapshot and trigger failover immediately if it does. Any new or pending read requests in the follower need to return ReadException.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2511

How was this patch tested?

Integration test.

Clean CI: https://github.com/ivandika3/ratis/actions/runs/25156971002

@ivandika3 ivandika3 marked this pull request as ready for review May 2, 2026 14:11
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.

1 participant