@@ -64,9 +64,11 @@ public void testDescribeWithKRaft(ClusterInstance cluster) {
64
64
assertEquals ("Feature: kraft.version\t SupportedMinVersion: 0\t " +
65
65
"SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (2 )));
66
66
assertEquals ("Feature: metadata.version\t SupportedMinVersion: 3.3-IV3\t " +
67
- "SupportedMaxVersion: 4.1-IV0\t FinalizedVersionLevel: 3.3-IV3\t " , outputWithoutEpoch (features .get (3 )));
67
+ "SupportedMaxVersion: 4.2-IV0\t FinalizedVersionLevel: 3.3-IV3\t " , outputWithoutEpoch (features .get (3 )));
68
+ assertEquals ("Feature: share.version\t SupportedMinVersion: 0\t " +
69
+ "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
68
70
assertEquals ("Feature: transaction.version\t SupportedMinVersion: 0\t " +
69
- "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
71
+ "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (5 )));
70
72
}
71
73
72
74
// Use the first MetadataVersion that supports KIP-919
@@ -86,9 +88,11 @@ public void testDescribeWithKRaftAndBootstrapControllers(ClusterInstance cluster
86
88
assertEquals ("Feature: kraft.version\t SupportedMinVersion: 0\t " +
87
89
"SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (2 )));
88
90
assertEquals ("Feature: metadata.version\t SupportedMinVersion: 3.3-IV3\t " +
89
- "SupportedMaxVersion: 4.1-IV0\t FinalizedVersionLevel: 3.7-IV0\t " , outputWithoutEpoch (features .get (3 )));
91
+ "SupportedMaxVersion: 4.2-IV0\t FinalizedVersionLevel: 3.7-IV0\t " , outputWithoutEpoch (features .get (3 )));
92
+ assertEquals ("Feature: share.version\t SupportedMinVersion: 0\t " +
93
+ "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
90
94
assertEquals ("Feature: transaction.version\t SupportedMinVersion: 0\t " +
91
- "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
95
+ "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (5 )));
92
96
}
93
97
94
98
@ ClusterTest (types = {Type .KRAFT }, metadataVersion = MetadataVersion .IBP_3_3_IV3 )
@@ -114,7 +118,7 @@ public void testDowngradeMetadataVersionWithKRaft(ClusterInstance cluster) {
114
118
);
115
119
// Change expected message to reflect possible MetadataVersion range 1-N (N increases when adding a new version)
116
120
assertEquals ("Could not disable metadata.version. The update failed for all features since the following " +
117
- "feature had an error: Invalid update version 0 for feature metadata.version. Local controller 3000 only supports versions 7-26 " , commandOutput );
121
+ "feature had an error: Invalid update version 0 for feature metadata.version. Local controller 3000 only supports versions 7-28 " , commandOutput );
118
122
119
123
commandOutput = ToolsTestUtils .captureStandardOut (() ->
120
124
assertEquals (1 , FeatureCommand .mainNoExit ("--bootstrap-server" , cluster .bootstrapServers (),
@@ -177,6 +181,7 @@ public void testDowngradeWithReleaseVersion(ClusterInstance cluster) {
177
181
"group.version was downgraded to 0.\n " +
178
182
"kraft.version was downgraded to 0.\n " +
179
183
"metadata.version was downgraded to 18.\n " +
184
+ "share.version was downgraded to 0.\n " +
180
185
"transaction.version was downgraded to 0." , commandOutput );
181
186
}
182
187
0 commit comments