Skip to content

Conversation

@DL1231
Copy link
Collaborator

@DL1231 DL1231 commented Dec 19, 2025

Move KRaftClusterTest from core module to server module.
Rewrite

  • testCreateClusterAndPerformReassignment
  • testIncrementalAlterConfigs
  • testSetLog4jConfigurations
  • testCreatePartitions
  • testDescribeQuorumRequestToBrokers
  • testDescribeQuorumRequestToControllers
  • testUpdateMetadataVersion
  • testDescribeKRaftVersion
  • testCreateClusterAndCreateTopicWithRemoteLogManagerInstantiation

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) labels Dec 19, 2025
# Conflicts:
#	core/src/test/scala/integration/kafka/server/KRaftClusterTest.scala
#	server/src/test/java/org/apache/kafka/server/KRaftClusterTest.java
@chia7712
Copy link
Member

@DL1231 Could you merge trunk in to trigger CI again?

Copy link
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.

@DL1231 thanks for this patch

@Timeout(120)
@Tag("integration")
public class KRaftClusterTest {
private static final Logger log = LoggerFactory.getLogger(KRaftClusterTest.class);
Copy link
Member

Choose a reason for hiding this comment

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

log -> LOG

public void testIncrementalAlterConfigs() throws Exception {
try (KafkaClusterTestKit cluster = new KafkaClusterTestKit.Builder(
new TestKitNodes.Builder()
.setNumBrokerNodes(4)
Copy link
Member

Choose a reason for hiding this comment

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

It appears that 3 brokers are sufficient for this test

log.debug("setting log4j");
LOG_2.debug("setting log4j");

ConfigResource broker2 = new ConfigResource(Type.BROKER_LOGGER, "2");
Copy link
Member

Choose a reason for hiding this comment

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

We could scale down the broker count for this test, right?

@github-actions github-actions bot removed the triage PRs from the community label Dec 21, 2025
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.

2 participants