Skip to content

RATIS-2497. Implement dummy request as a noop request instead of watch request#1433

Closed
ivandika3 wants to merge 3 commits intoapache:masterfrom
ivandika3:RATIS-2497
Closed

RATIS-2497. Implement dummy request as a noop request instead of watch request#1433
ivandika3 wants to merge 3 commits intoapache:masterfrom
ivandika3:RATIS-2497

Conversation

@ivandika3
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Currently the dummy request is a WATCH(0) which will trigger client leader failover. In a follower read client scenario, this might cause client to always failover to the leader which reduces the follower read effectiveness.

We can try implement a new noop request (some kind of ping request) which simply returns a successful response regardless of the Raft peer role.

What is the link to the Apache JIRA

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

How was this patch tested?

UT.

@ivandika3
Copy link
Copy Markdown
Contributor Author

Closing this, I think it's better to address this TODO.

// TODO: this is a work around, it is better to fix the underlying RPC implementation

@ivandika3 ivandika3 closed this Apr 21, 2026
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