KAFKA-19416: Reduce running time of ShareConsumerTest (#19992)

Configure tests in ShareConsumer to run exclusively in Raft-Isolated
mode to reduce execution time.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Jhen-Yung Hsu
<jhenyunghsu@gmail.com>, Ken Huang <s7133700@gmail.com>
This commit is contained in:
Lan Ding 2025-06-19 22:30:23 +08:00 committed by GitHub
parent 55297967a9
commit dbbc45f7a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ import org.apache.kafka.common.test.ClusterInstance;
import org.apache.kafka.common.test.api.ClusterConfigProperty; import org.apache.kafka.common.test.api.ClusterConfigProperty;
import org.apache.kafka.common.test.api.ClusterTest; import org.apache.kafka.common.test.api.ClusterTest;
import org.apache.kafka.common.test.api.ClusterTestDefaults; import org.apache.kafka.common.test.api.ClusterTestDefaults;
import org.apache.kafka.common.test.api.Type;
import org.apache.kafka.common.utils.Utils; import org.apache.kafka.common.utils.Utils;
import org.apache.kafka.coordinator.group.GroupConfig; import org.apache.kafka.coordinator.group.GroupConfig;
import org.apache.kafka.coordinator.group.modern.share.ShareGroupConfig; import org.apache.kafka.coordinator.group.modern.share.ShareGroupConfig;
@ -111,6 +112,7 @@ import static org.junit.jupiter.api.Assertions.fail;
@Timeout(1200) @Timeout(1200)
@Tag("integration") @Tag("integration")
@ClusterTestDefaults( @ClusterTestDefaults(
types = {Type.KRAFT},
serverProperties = { serverProperties = {
@ClusterConfigProperty(key = "auto.create.topics.enable", value = "false"), @ClusterConfigProperty(key = "auto.create.topics.enable", value = "false"),
@ClusterConfigProperty(key = "group.share.partition.max.record.locks", value = "10000"), @ClusterConfigProperty(key = "group.share.partition.max.record.locks", value = "10000"),