ryu1-sakai opened a new pull request, #1515: URL: https://github.com/apache/ratis/pull/1515
## 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`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
