File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
test-common/src/main/java/org/apache/kafka/common/test Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 24
24
import org .apache .kafka .metadata .properties .MetaProperties ;
25
25
import org .apache .kafka .metadata .properties .MetaPropertiesEnsemble ;
26
26
import org .apache .kafka .metadata .properties .MetaPropertiesVersion ;
27
+ import org .apache .kafka .server .common .Feature ;
27
28
import org .apache .kafka .server .common .MetadataVersion ;
28
29
29
30
import java .io .File ;
@@ -62,7 +63,15 @@ public static class Builder {
62
63
private BootstrapMetadata bootstrapMetadata ;
63
64
64
65
public Builder () {
65
- this (BootstrapMetadata .fromVersion (MetadataVersion .latestTesting (), "testkit" ));
66
+ this (BootstrapMetadata .fromVersions (
67
+ MetadataVersion .latestTesting (),
68
+ Feature .PRODUCTION_FEATURES .stream ()
69
+ .collect (Collectors .toMap (
70
+ Feature ::featureName ,
71
+ feature -> feature .defaultLevel (MetadataVersion .latestTesting ()),
72
+ (existing , replacement ) -> existing ,
73
+ TreeMap ::new )),
74
+ "testkit" ));
66
75
}
67
76
68
77
public Builder (BootstrapMetadata bootstrapMetadata ) {
You can’t perform that action at this time.
0 commit comments