File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )))
You can’t perform that action at this time.
0 commit comments