File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
confluent_kafka/kafkatest Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,24 @@ def set_config(conf, args):
7575 # App config, skip
7676 continue
7777
78- n = n [5 :] # Remove conf_ prefix
78+ # Remove conf_ prefix
79+ n = n [5 :]
7980
81+ # Handle known Java properties to librdkafka properties.
8082 if n == 'partition.assignment.strategy' :
8183 # Convert Java class name to config value.
8284 # "org.apache.kafka.clients.consumer.RangeAssignor" -> "range"
8385 conf [n ] = re .sub (r'org.apache.kafka.clients.consumer.(\w+)Assignor' ,
8486 lambda x : x .group (1 ).lower (), v )
85- # Handle known Java properties to librdkafka properties.
87+
8688 elif n == 'enable.idempotence' :
8789 # Ignore idempotence for now, best-effortly.
8890 sys .stderr .write ('%% WARN: Ignoring unsupported %s=%s\n ' % (n , v ))
8991 else :
9092 conf [n ] = v
9193
9294 @staticmethod
93- def read_config_file (path ):
95+ def read_config_file (path ):
9496 """Read (java client) config file and return dict with properties"""
9597 conf = {}
9698
You can’t perform that action at this time.
0 commit comments