Repository navigation
RATIS-2843. Fix cache misses and stale entries in FollowerInfoMap - #1720
Merged
Merged
Conversation
szetszwo
approved these changes
Dec 2, 2026
szetszwo
left a comment
Contributor
There was a problem hiding this comment.
+1 the change looks good.
Contributor
|
Contributor
|
There is a warning from https://github.com/lugency/ratis/actions which might clarify this:
And a repo maintainer needs to do something, which I assume is the forked repo maintainer? |
Contributor
|
I think @lugency has to manually (re-)enable github actions on the forked repo and then re-trigger the CI. |
Contributor
Author
|
Thanks @szetszwo for the review and @amaliujia for pointing this out! I've re-enabled GitHub Actions on my fork and re-triggered the CI. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Assisted by OpenAI Codex.
What changes were proposed in this pull request?
FollowerInfoMap. Since the map has no entry for the leader,LeaderStateImpl.isSameSize()now excludes the leader from the expected follower count when the configuration includes it.FollowerInfoMap.put()and invalidate the cache when it replaces an existing entry.What is the link to the Apache JIRA?
RATIS-2843
How was this patch tested?
Added and ran
TestFollowerInfoMap.