Skip to content
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

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

cmccabe
Copy link
Contributor

@cmccabe cmccabe commented Nov 22, 2024

Remove all zk tests from MetricsTest.scala,
CreateTopicsRequestTest.scala, DynamicConfigChangeTest.scala, MetadataRequestTest.scala.

Convert CreateTopicsRequestTest.testCreateTopicsRequestVersions to KRaft.

@github-actions github-actions bot added core Kafka Broker tests Test fixes (including flaky tests) labels Nov 22, 2024
Copy link
Contributor

@mumrah mumrah left a 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 = {
Copy link
Contributor

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?

Copy link
Contributor Author

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.
@cmccabe cmccabe force-pushed the cmccabe_remove_zk_tests_nov22 branch from 5fc673b to 3dc71a6 Compare November 22, 2024 17:47
Copy link
Contributor

@chia7712 chia7712 left a 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 {
Copy link
Contributor

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 {
Copy link
Contributor

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?

@chia7712
Copy link
Contributor

The failed test is being tracked in KAFKA-18078. I'll create a follow-up to clean up isKRaftTest, as there are many similar issues throughout the codebase.

@chia7712 chia7712 merged commit ec3bc09 into apache:trunk Nov 23, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Kafka Broker tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants