KAFKA-14569: Migrate Kafka Streams tests from Zookeeper to KRaft#15341
KAFKA-14569: Migrate Kafka Streams tests from Zookeeper to KRaft#15341mdedetrich wants to merge 1 commit into
Conversation
f21a684 to
c4a1cb0
Compare
| log.debug("ZooKeeper instance is running at {}", zKConnectString()); | ||
| final KafkaClusterTestKit.Builder clusterBuilder = new KafkaClusterTestKit.Builder( | ||
| new TestKitNodes.Builder() | ||
| .setNumControllerNodes(1) |
There was a problem hiding this comment.
Any reason why we don't setup the cluster with combined nodes and number of controllers == number of brokers instead of one controller and one broker? Specially that as far as I can see all the test set number of brokers to 1 anyway. This also can get us to remove KafkaEmbedded which might simplify the setup! WDYT?
OmniaGM
left a comment
There was a problem hiding this comment.
Thanks for the pr. I had a quick run through the PR. And I left couple of comments. One other comment is that the java doc in EmbeddedKafkaCluster line 44 need to be updated as it still mention that it start zookeeper.
| */ | ||
| @SuppressWarnings("WeakerAccess") | ||
| public String zookeeperConnect() { | ||
| return effectiveConfig.getProperty("zookeeper.connect", DEFAULT_ZK_CONNECT); |
There was a problem hiding this comment.
Can we also remove ZkSessionTimeoutMsProp KafkaEmbedded.effectiveConfigFrom line 99 as we don't need it anymore.
|
Thanks for the comments! I just realized that the PR can use additional improvements, i.e. I can get rid of |
Thanks for taking the comments into consideration. One other suggestion is that we can have a look into #13375 to see what is the common between both |
Cool I will look into it. |
7f21acb to
5afef77
Compare
04a2d50 to
aecd641
Compare
aecd641 to
3fe0e67
Compare
|
@OmniaGM So the structure of the PR/tests is now finalized, I ended up entirely deleting On that note, the current issue with the PR is that not all of the tests are passing, i.e. |
|
Hey @mdedetrich - are you still working on this PR? We are getting closer to 4.0, so it would be good to finish this. |
|
We have migrated connect testes to KRAFT, can we reuse the new connect's EmbeddedCluster to move stream tests as well? I can help with this PR if no one has time to move it forward. |
|
That would be great @OmniaGM . I'd be happy to help with the PR as well or at least do the reviews. We just need to agree on an owner and avoid duplicated effort. @mdedetrich are you planning to continue on this PR? |
|
Hi, no I don't have the capacity to work on this PR anymore. Please take it over |
|
I have some capacity to pickup this one. |
Nice! This is highly appreciated. Are you planning to re-use this one, or open a new one (for this case, we should just close this one). |
I'll open a new PR so we can close this once I open the new one |
Migrates stream tests from zookeeper to KRaft