Skip to content

Commit c51022d

Browse files
committed
Fix for version 3.8
1 parent 3c2ded6 commit c51022d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib/eventproducer_connector_upgrade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def check_events_from_topic(target):
3636
else:
3737
class_name = "org.apache.kafka.tools.GetOffsetShell"
3838
output1 = subprocess.getoutput(f"echo $(/usr/local/kafka/bin/kafka-run-class.sh {class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -1"
39-
+ " | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
39+
+ " | grep -e ':[[:digit:]]*:' | grep -v WARN | awk -F ':' '{sum += $3} END {print sum}')")
4040
output2 = subprocess.getoutput(f"echo $(/usr/local/kafka/bin/kafka-run-class.sh {class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -2"
41-
+ " | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
41+
+ " | grep -e ':[[:digit:]]*:' | grep -v WARN | awk -F ':' '{sum += $3} END {print sum}')")
4242
time.sleep(5)
4343
if (int(output1)-int(output2))==target:
4444
logger.info("Events in the topic :" + str(int(output1)-int(output2)))

0 commit comments

Comments
 (0)