File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -149,10 +149,6 @@ jobs:
149149 kafka_package : " kafka_2.12-3.9.0.tgz"
150150 confluent_major_version : " 7.9"
151151 confluent_package_version : " 7.9.2"
152- - kafka_version : " 4.0.0"
153- kafka_package : " kafka_2.13-4.0.0.tgz"
154- confluent_major_version : " 8.0"
155- confluent_package_version : " 8.0.0"
156152 env :
157153 CI_SPLUNK_VERSION : " 9.0.2"
158154 CI_SPLUNK_FILENAME : splunk-9.0.2-17e00c557dc1-Linux-x86_64.tgz
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ def check_events_from_topic(target):
3535 class_name = "kafka.tools.GetOffsetShell"
3636 else :
3737 class_name = "org.apache.kafka.tools.GetOffsetShell"
38- 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}')" )
40- 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}')" )
38+ 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 2>/dev/null "
39+ + " | grep -e ':[[:digit:]]*:' | grep -v WARN | awk -F ':' '{sum += $3} END {print sum}')" )
40+ 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 2>/dev/null "
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