Skip to content

HDDS-13831. Refine set role logic in getServicelist#9191

Merged
ivandika3 merged 1 commit intoapache:masterfrom
symious:HDDS-13831
Oct 31, 2025
Merged

HDDS-13831. Refine set role logic in getServicelist#9191
ivandika3 merged 1 commit intoapache:masterfrom
symious:HDDS-13831

Conversation

@symious
Copy link
Contributor

@symious symious commented Oct 23, 2025

What changes were proposed in this pull request?

Currently the OM processing the getServiceList() request is set to be the "Leader" because all requests will be forwarded to the leader.

But after supporting read from follower, this logic will show incorrect role information.

This ticket is to refine the logic, so that it will show the correct role after supporting follower-read.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-13831

How was this patch tested?

Existing tests.

Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

The change looks good.

Copy link
Contributor

@ivandika3 ivandika3 left a comment

Choose a reason for hiding this comment

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

@symious Thanks for the improvement. LGTM +1.

@ivandika3 ivandika3 merged commit fb706e7 into apache:master Oct 31, 2025
43 checks passed
@symious
Copy link
Contributor Author

symious commented Oct 31, 2025

@ChenSammi @ivandika3 Thank you for the review.

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.

3 participants