-
Notifications
You must be signed in to change notification settings - Fork 14.8k
MINOR: Remove unstable.api.version.enable config and rename corresponding test from StreamsGroupHeartbeatRequestTest #21132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
ea0592c
9ee392d
79913ec
ebe57ab
327e723
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,6 @@ import scala.jdk.CollectionConverters._ | |
| serverProperties = Array( | ||
| new ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"), | ||
| new ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1"), | ||
| new ClusterConfigProperty(key = "unstable.api.versions.enable", value = "true"), | ||
| new ClusterConfigProperty(key = "group.coordinator.rebalance.protocols", value = "classic,consumer,streams"), | ||
| new ClusterConfigProperty(key = "group.streams.initial.rebalance.delay.ms", value = "0") | ||
| ) | ||
|
|
@@ -111,31 +110,6 @@ class StreamsGroupHeartbeatRequestTest(cluster: ClusterInstance) extends GroupCo | |
| assertEquals(expectedResponse, streamsGroupHeartbeatResponse) | ||
| } | ||
|
|
||
| @ClusterTest( | ||
| serverProperties = Array( | ||
| new ClusterConfigProperty(key = GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic,consumer,streams"), | ||
| ) | ||
| ) | ||
| def testStreamsGroupHeartbeatIsInaccessibleWhenUnstableLatestVersionNotEnabled(): Unit = { | ||
| val topology = new StreamsGroupHeartbeatRequestData.Topology() | ||
| .setEpoch(1) | ||
| .setSubtopologies(List().asJava) | ||
|
|
||
| val streamsGroupHeartbeatResponse = streamsGroupHeartbeat( | ||
| groupId = "test-group", | ||
| memberId = "test-member", | ||
| rebalanceTimeoutMs = 1000, | ||
| activeTasks = List.empty, | ||
| standbyTasks = List.empty, | ||
| warmupTasks = List.empty, | ||
| topology = topology, | ||
| expectedError = Errors.NOT_COORDINATOR | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error appears to be caused by the non-existence of the offset topic. Perhaps we can keep the test, but rename it to reflect this specific scenario
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could do that as well I guess
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks both! I changed the test name to reflect the scenario. |
||
| ) | ||
|
|
||
| val expectedResponse = new StreamsGroupHeartbeatResponseData().setErrorCode(Errors.NOT_COORDINATOR.code()) | ||
| assertEquals(expectedResponse, streamsGroupHeartbeatResponse) | ||
| } | ||
|
|
||
| @ClusterTest | ||
|
||
| def testStreamsGroupHeartbeatIsAccessibleWhenNewGroupCoordinatorIsEnabledTopicNotExistFirst(): Unit = { | ||
| val admin = cluster.admin() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of
unstable.api.versions.enableconfiguration from this test class may be premature. This configuration is still actively used in other test files including:ApiVersionsRequestTest.scala(lines 32, 42, 72)SaslApiVersionsRequestTest.scala(lines 45, 85)DescribeFeaturesTest.java(lines 49, 54)FeatureCommandTest.java(lines 134, 139)The configuration constant is also still defined in
ServerConfigs.java(line 115:UNSTABLE_API_VERSIONS_ENABLE_CONFIG).Unless there's a specific reason why StreamsGroupHeartbeatRequestTest doesn't need this configuration while other API version tests do, this removal should be reconsidered or accompanied by a broader cleanup across all test files.