CalvinConfluent commented on code in PR #14784:
URL: https://github.com/apache/kafka/pull/14784#discussion_r1399379549
##########
clients/src/main/java/org/apache/kafka/common/requests/BrokerRegistrationRequest.java:
##########
@@ -45,6 +45,10 @@ public short oldestAllowedVersion() {
@Override
public BrokerRegistrationRequest build(short version) {
+ if (version < 2) {
+ // Reset the PreviousBrokerEpoch to default if not supported.
+ data.setPreviousBrokerEpoch(new
BrokerRegistrationRequestData().previousBrokerEpoch());
Review Comment:
Thanks David!
--
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]