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):
75
75
# App config, skip
76
76
continue
77
77
78
- n = n [5 :] # Remove conf_ prefix
78
+ # Remove conf_ prefix
79
+ n = n [5 :]
79
80
81
+ # Handle known Java properties to librdkafka properties.
80
82
if n == 'partition.assignment.strategy' :
81
83
# Convert Java class name to config value.
82
84
# "org.apache.kafka.clients.consumer.RangeAssignor" -> "range"
83
85
conf [n ] = re .sub (r'org.apache.kafka.clients.consumer.(\w+)Assignor' ,
84
86
lambda x : x .group (1 ).lower (), v )
85
- # Handle known Java properties to librdkafka properties.
87
+
86
88
elif n == 'enable.idempotence' :
87
89
# Ignore idempotence for now, best-effortly.
88
90
sys .stderr .write ('%% WARN: Ignoring unsupported %s=%s\n ' % (n , v ))
89
91
else :
90
92
conf [n ] = v
91
93
92
94
@staticmethod
93
- def read_config_file (path ):
95
+ def read_config_file (path ):
94
96
"""Read (java client) config file and return dict with properties"""
95
97
conf = {}
96
98
You can’t perform that action at this time.
0 commit comments