Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In our JUnit testkit extension, we allow for a cluster to be started explicitly in the test by annotating a test with AutoStart.NO. This allows for additional configuration or setup to be done in the test method before starting the cluster. For example:
@ClusterTest(clusterType = Type.ZK, brokers = 3, autoStart = AutoStart.NO) public void testSomething(ClusterInstance clusterInstance) { clusterInstance.config().serverProperties().put("foo", "bar") clusterInstance.start(); // ... }
This works fine for ZK clusters, but is broken for KRaft clusters.
Attachments
Issue Links
- blocks
-
KAFKA-12617 Convert MetadataRequestTest to use ClusterTest
- Open
- links to