mumrah commented on code in PR #12240:
URL: https://github.com/apache/kafka/pull/12240#discussion_r891357405
##########
metadata/src/main/java/org/apache/kafka/image/MetadataImage.java:
##########
@@ -120,10 +121,16 @@ public AclsImage acls() {
}
public void write(Consumer<List<ApiMessageAndVersion>> out) {
+ // We use the minimum KRaft metadata version if this image does
+ // not have a specific version set.
+ MetadataVersion metadataVersion = features.metadataVersion();
+ if (metadataVersion.equals(MetadataVersion.UNINITIALIZED)) {
+ metadataVersion = MetadataVersion.IBP_3_0_IV1;
+ }
Review Comment:
Right, once that PR is merged, KRaft will be at metadata version IBP_3_0_IV1
implicitly until the controller finishes bootstrapping. This will be true on
the controller and broker side of things
--
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]