We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46860eb commit b8f6078Copy full SHA for b8f6078
kafka/test/kafkacat.yml
@@ -23,8 +23,10 @@ data:
23
echo "${UNIQUE: -41:5}:Test $UNIQUE" >> /shared/produce.tmp
24
sleep $PC_WAIT
25
LAST=$(tail -n 1 /shared/consumed.tmp)
26
+ [ -z "$LAST" ] && echo "Nothing consumed" && exit 1
27
28
LAST_TS=$(echo $LAST | awk -F';' '{print $1}')
29
+ [ -z "$LAST_TS" ] && echo "Failed to get timestamp for message: $LAST" && exit 1
30
LAST_MSG=$(echo $LAST | awk -F';' '{print $4}')
31
NOW=$(date -u +%s%3N)
32
DIFF_S=$((($NOW - $LAST_TS)/1000))
0 commit comments