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

Lines changed: 6 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy