Skip to content

Commit 69ec887

Browse files
committed
kafkatest: use cooperative-sticky for StickyAssignor
1 parent e126de1 commit 69ec887

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

confluent_kafka/kafkatest/verifiable_client.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ def set_config(conf, args):
8686
if n == 'partition.assignment.strategy':
8787
# Convert Java class name to config value.
8888
# "org.apache.kafka.clients.consumer.RangeAssignor" -> "range"
89-
conf[n] = re.sub(r'org.apache.kafka.clients.consumer.(\w+)Assignor',
90-
lambda x: x.group(1).lower(), v)
91-
else:
92-
conf[n] = v
89+
v = re.sub(r'org.apache.kafka.clients.consumer.(\w+)Assignor',
90+
lambda x: x.group(1).lower(), v)
91+
if v == 'sticky':
92+
v = 'cooperative-sticky'
93+
94+
conf[n] = v
9395

9496
@staticmethod
9597
def read_config_file(path):

0 commit comments

Comments
 (0)