-
Notifications
You must be signed in to change notification settings - Fork 14k
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
MINOR: remove some obsolete zk tests #17913
Conversation
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.
One question
@nowarn("cat=deprecation") | ||
@ParameterizedTest | ||
@ValueSource(strings = Array("zk")) | ||
def testMessageFormatVersionChange(quorum: String): Unit = { |
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.
Why didn't we port this one to KRaft? Is it because we are always on record version 2 now?
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.
correct. we don't support record version 0 and 1 on kraft (never did)
Remove all zk tests from MetricsTest.scala, CreateTopicsRequestTest.scala, DynamicConfigChangeTest.scala, MetadataRequestTest.scala, ListOffsetsIntegrationTest.scala, and ServerShutdownTest.scala. Convert CreateTopicsRequestTest.testCreateTopicsRequestVersions to KRaft.
5fc673b
to
3dc71a6
Compare
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.
LGTM and some trivial comments are left. PTAL
@@ -327,22 +253,6 @@ class DynamicConfigChangeTest extends KafkaServerTestHarness { | |||
} finally { | |||
admin.close() | |||
} | |||
} else { |
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.
Could you please also remove if (isKRaftTest())
for this test? It is redundant now.
@@ -152,10 +142,6 @@ class ServerShutdownTest extends KafkaServerTestHarness { | |||
shutdownBroker() | |||
shutdownKRaftController() | |||
verifyCleanShutdownAfterFailedStartup[CancellationException] | |||
} else { |
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.
ditto. could you please remove isKRaftTest
?
The failed test is being tracked in KAFKA-18078. I'll create a follow-up to clean up |
Remove all zk tests from MetricsTest.scala,
CreateTopicsRequestTest.scala, DynamicConfigChangeTest.scala, MetadataRequestTest.scala.
Convert CreateTopicsRequestTest.testCreateTopicsRequestVersions to KRaft.