Skip to content

RATIS-2806. Preserve existing listeners in setConfiguration ADD mode - #1687

Merged
szetszwo merged 1 commit into
apache:masterfrom
lugency:RATIS-2806
Nov 7, 2026
Merged

szetszwo merged 1 commit into
apache:masterfrom
lugency:RATIS-2806

Conversation

@lugency

@lugency lugency commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

  • Pass the merged listener list to LeaderStateImpl#startSetConfiguration() so ADD mode preserves existing listeners.
  • Remove the duplicate LEAST_VALID_LOG_INDEX and INVALID_LOG_INDEX declarations from RaftLogBase.

What is the link to the Apache JIRA

RATIS-2806

How was this patch tested?

Tested locally.

  • TestRaftReconfigurationWithGrpc
  • TestRaftReconfigurationWithNetty
  • TestRaftReconfigurationWithSimulatedRpc

@szetszwo szetszwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo
szetszwo merged commit 7f447fd into apache:master Nov 7, 2026
17 checks passed
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