Skip to content

RATIS-2601. GroupInfoReply conf is lost when converting to GroupInfoReplyProto#1515

Open
ryu1-sakai wants to merge 1 commit into
apache:masterfrom
ryu1-sakai:RATIS-2601-fix-ClientProtoUtils-toGroupInfoReplyProto
Open

RATIS-2601. GroupInfoReply conf is lost when converting to GroupInfoReplyProto#1515
ryu1-sakai wants to merge 1 commit into
apache:masterfrom
ryu1-sakai:RATIS-2601-fix-ClientProtoUtils-toGroupInfoReplyProto

Conversation

@ryu1-sakai

Copy link
Copy Markdown

What changes were proposed in this pull request?

ClientProtoUtils#toGroupInfoReplyProto() doesn't set the field conf (RaftConfigurationProto) when it converts GroupInfoReply into GroupInfoReplyProto. Consequently, the converted proto lacks conf and GroupInfoReply.getConf() always returns an empty Optional on the client side.

This patch sets conf when it is present.

What is the link to the Apache JIRA

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

How was this patch tested?

Added a round-trip test in TestClientProtoUtils (GroupInfoReply -> RaftConfigurationProto -> GroupInfoReply). It covers both null and non-null conf by @ParemeterizedTest.

@adoroszlai adoroszlai requested review from ss77892 and szetszwo July 12, 2026 14:51

@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.

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