KAFKA-16308 [2/N]: Allow unstable feature versions and rename unstable metadata config#16130
KAFKA-16308 [2/N]: Allow unstable feature versions and rename unstable metadata config#16130jolshan merged 3 commits intoapache:trunkfrom
Conversation
| // This indicates whether unreleased MetadataVersions should be enabled on this node. | ||
| .defineInternal(ServerConfigs.UNSTABLE_METADATA_VERSIONS_ENABLE_CONFIG, BOOLEAN, false, HIGH) | ||
| // This indicates whether unreleased MetadataVersions or other feature versions should be enabled on this node. | ||
| .defineInternal(ServerConfigs.UNSTABLE_FEATURE_VERSIONS_ENABLE_CONFIG, BOOLEAN, false, HIGH) |
There was a problem hiding this comment.
Yeah, it's a fair question. I think the original intent was to keep it internal and only use for testing.
There was a problem hiding this comment.
Yup -- this is the text in the KIP:
Add INTERNAL configuration unstable.feature.versions.enable to allow for non production ready features to be used (for testing)
| */ | ||
| public FeatureVersion fromFeatureLevel(short level) { | ||
| public FeatureVersion fromFeatureLevel(short level, | ||
| boolean allowUnstableFeatureVersions) { |
There was a problem hiding this comment.
Could we add the new param to javadoc?
| MetadataVersion.LATEST_PRODUCTION, | ||
| Map(TestFeatureVersion.FEATURE_NAME -> featureLevel), | ||
| allFeatures, | ||
| false, |
There was a problem hiding this comment.
Hmm, TEST_VERSION level 2 is not in production and should show an exception when calling StorageTool.generateFeatureRecord?
There was a problem hiding this comment.
if (featureLevel <= Features.TEST_VERSION.defaultValue(MetadataVersion.LATEST_PRODUCTION)) this means we skip version 2
|
I filed https://issues.apache.org/jira/browse/KAFKA-16866 for the one failure and that is getting fixed separately. As for the others, looks like they are frequent flakes. I will go ahead and merge. |
…e metadata config (apache#16130) As per KIP-1022, we will rename the unstable metadata versions enabled config to support all feature versions. Features is also updated to return latest production and latest testing versions of each feature. A feature is production ready when the corresponding metadata version (bootstrapMetadataVersion) is production ready. Adds tests for the feature usage of the unstableFeatureVersionsEnabled config Reviewers: David Jacot <djacot@confluent.io>, Jun Rao <junrao@gmail.com>
…e metadata config (apache#16130) As per KIP-1022, we will rename the unstable metadata versions enabled config to support all feature versions. Features is also updated to return latest production and latest testing versions of each feature. A feature is production ready when the corresponding metadata version (bootstrapMetadataVersion) is production ready. Adds tests for the feature usage of the unstableFeatureVersionsEnabled config Reviewers: David Jacot <djacot@confluent.io>, Jun Rao <junrao@gmail.com>
…e metadata config (apache#16130) As per KIP-1022, we will rename the unstable metadata versions enabled config to support all feature versions. Features is also updated to return latest production and latest testing versions of each feature. A feature is production ready when the corresponding metadata version (bootstrapMetadataVersion) is production ready. Adds tests for the feature usage of the unstableFeatureVersionsEnabled config Reviewers: David Jacot <djacot@confluent.io>, Jun Rao <junrao@gmail.com>
…e metadata config (apache#16130) As per KIP-1022, we will rename the unstable metadata versions enabled config to support all feature versions. Features is also updated to return latest production and latest testing versions of each feature. A feature is production ready when the corresponding metadata version (bootstrapMetadataVersion) is production ready. Adds tests for the feature usage of the unstableFeatureVersionsEnabled config Reviewers: David Jacot <djacot@confluent.io>, Jun Rao <junrao@gmail.com>
As per KIP-1022, we will rename the unstable metadata versions enabled config to support all feature versions.
Features is also updated to return latest production and latest testing versions of each feature.
A feature is production ready when the corresponding metadata version (bootstrapMetadataVersion) is production ready.
Adds tests for the feature usage of the unstableFeatureVersionsEnabled config