Skip to content

MINOR: Remove RaftManager.maybeDeleteMetadataLogDir and AutoTopicCreationManagerTest.scala#17365

Merged
chia7712 merged 2 commits intoapache:trunkfrom
cmccabe:KAFKA-17615
Jan 7, 2025
Merged

MINOR: Remove RaftManager.maybeDeleteMetadataLogDir and AutoTopicCreationManagerTest.scala#17365
chia7712 merged 2 commits intoapache:trunkfrom
cmccabe:KAFKA-17615

Conversation

@cmccabe
Copy link
Copy Markdown
Contributor

@cmccabe cmccabe commented Oct 3, 2024

Remove RaftManager.maybeDeleteMetadataLogDir since it's not used any more. also remove AutoTopicCreationManagerTest since it tests the ZK-mode-only AutoTopicReationManager.

Copy link
Copy Markdown
Member

@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.

@cmccabe could you please check the failed test? testDefaultTopicConfig, testMetricsReporterUpdate, and testThreadPoolResize need to add @ParameterizedTest and @ValueSource(strings = Array("kraft")) to ensure they are running with kraft.

@mimaison
Copy link
Copy Markdown
Member

mimaison commented Nov 9, 2024

@cmccabe Can you rebase to resolve the conflicts? Thanks

cmccabe added a commit that referenced this pull request Dec 19, 2024
Remove ReplicationQuotaUtils.scala since it's not used any more.

Remove DynamicBrokerConfigTest.testEnableDefaultUncleanLeaderElection
since it tests the ZK-based controller, and we have other tests for
configuring unclean leader election in KRaft mode.

Remove RaftManager.maybeDeleteMetadataLogDir since it was only used
during ZK migration, and that code has been removed. Similarly, remove
RaftManagerTest.testKRaftBrokerDoesNotDeleteMetadataLog which tested
that function.

Move KafkaServer.MIN_INCREMENTAL_FETCH_SESSION_EVICTION_MS to KafkaBroker.

Remove AutoTopicCreationManagerTest since it tests the ZK-mode-only
AutoTopicReationManager.
@cmccabe cmccabe changed the title KAFKA-17615: Remove KafkaServer references in tests KAFKA-17615: Remove more KafkaServer references Dec 19, 2024
@cmccabe
Copy link
Copy Markdown
Contributor Author

cmccabe commented Dec 19, 2024

@mimaison : just rebased.

Remove ReplicationQuotaUtils.scala since it's not used any more.

Remove DynamicBrokerConfigTest.testEnableDefaultUncleanLeaderElection
since it tests the ZK-based controller, and we have other tests for
configuring unclean leader election in KRaft mode.

Remove RaftManager.maybeDeleteMetadataLogDir since it was only used
during ZK migration, and that code has been removed. Similarly, remove
RaftManagerTest.testKRaftBrokerDoesNotDeleteMetadataLog which tested
that function.

Move KafkaServer.MIN_INCREMENTAL_FETCH_SESSION_EVICTION_MS to KafkaBroker.

Remove AutoTopicCreationManagerTest since it tests the ZK-mode-only
AutoTopicReationManager.
@cmccabe cmccabe changed the title KAFKA-17615: Remove more KafkaServer references MINOR: Remove RaftManager.maybeDeleteMetadataLogDir Jan 6, 2025
Copy link
Copy Markdown
Member

@mimaison mimaison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mimaison
Copy link
Copy Markdown
Member

mimaison commented Jan 7, 2025

The test failure is https://issues.apache.org/jira/browse/KAFKA-18297, so it's not related to this PR.

@chia7712
Copy link
Copy Markdown
Member

chia7712 commented Jan 7, 2025

oh, sorry that the PR I just merge causes the conflicts on AutoTopicCreationManagerTest.scala. I will fix the conflicts and then merge this PR since the AutoTopicCreationManagerTest.scala is unnecessary anymore.

@chia7712 chia7712 changed the title MINOR: Remove RaftManager.maybeDeleteMetadataLogDir MINOR: Remove RaftManager.maybeDeleteMetadataLogDir and AutoTopicCreationManagerTest.scala Jan 7, 2025
@chia7712 chia7712 merged commit d8236be into apache:trunk Jan 7, 2025
chia7712 pushed a commit that referenced this pull request Jan 7, 2025
…tionManagerTest.scala (#17365)

Remove RaftManager.maybeDeleteMetadataLogDir since it was only used during ZK migration, and that code has been removed.

Similarly, remove RaftManagerTest.testKRaftBrokerDoesNotDeleteMetadataLog which tested that function.

Remove AutoTopicCreationManagerTest since it tests the ZK-mode-only AutoTopicReationManager.

Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
ijuma added a commit to ijuma/kafka that referenced this pull request Jan 8, 2025
…og-compaction-write-record-v2

* apache-github/trunk: (34 commits)
  MINOR: Bump year to 2025 in NOTICE file (apache#18427)
  KAFKA-18411 Remove ZkProducerIdManager (apache#18413)
  KAFKA-18408 tweak the 'tag' field for BrokerHeartbeatRequest.json, BrokerRegistrationChangeRecord.json and RegisterBrokerRecord.json (apache#18421)
  KAFKA-18414 Remove KRaftRegistrationResult (apache#18401)
  KAFKA-17921 Support SASL_PLAINTEXT protocol with java.security.auth.login.config (apache#17671)
  KAFKA-18384 Remove ZkAlterPartitionManager (apache#18364)
  KAFKA-10790: Add deadlock detection to producer#flush (apache#17946)
  KAFKA-18412: Remove EmbeddedZookeeper (apache#18399)
  MINOR : Improve Exception log in NotEnoughReplicasException(apache#12394)
  MINOR: Improve PlaintextAdminIntegrationTest#testConsumerGroups (apache#18409)
  MINOR: Remove unused local variable (apache#18410)
  MINOR: Remove RaftManager.maybeDeleteMetadataLogDir and AutoTopicCreationManagerTest.scala (apache#17365)
  KAFKA-18368 Remove TestUtils#MockZkConnect and remove zkConnect from TestUtils#createBrokerConfig (apache#18352)
  MINOR: Update Consumer group timeout default to 30 sec (apache#16406)
  MINOR: Fix typo in CommitRequestManager (apache#18407)
  MINOR: cleanup JavaDocs for deprecation warnings (apache#18402)
  KAFKA-18303; Update ShareCoordinator to use new record format (apache#18396)
  MINOR: Update Consumer and Producer JavaDocs for committing offsets (apache#18336)
  KAFKA-16446: Improve controller event duration logging (apache#15622)
  KAFKA-18388 test-kraft-server-start.sh should use log4j2.yaml (apache#18370)
  ...
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
…tionManagerTest.scala (apache#17365)

Remove RaftManager.maybeDeleteMetadataLogDir since it was only used during ZK migration, and that code has been removed.

Similarly, remove RaftManagerTest.testKRaftBrokerDoesNotDeleteMetadataLog which tested that function.

Remove AutoTopicCreationManagerTest since it tests the ZK-mode-only AutoTopicReationManager.

Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
…tionManagerTest.scala (apache#17365)

Remove RaftManager.maybeDeleteMetadataLogDir since it was only used during ZK migration, and that code has been removed.

Similarly, remove RaftManagerTest.testKRaftBrokerDoesNotDeleteMetadataLog which tested that function.

Remove AutoTopicCreationManagerTest since it tests the ZK-mode-only AutoTopicReationManager.

Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants