Skip to content

Commit

Permalink
tests(ticdc): fix the flaky test (#9191)
Browse files Browse the repository at this point in the history
ref #2246
  • Loading branch information
Rustin170506 authored Jun 12, 2023
1 parent 258acb3 commit a912663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration_tests/kafka_compression/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function test_compression() {
run_kafka_consumer $WORK_DIR "kafka://127.0.0.1:9092/$TOPIC_NAME?protocol=canal-json&version=${KAFKA_VERSION}&enable-tidb-extension=true"
run_sql_file $CUR/data/$1_data.sql ${UP_TIDB_HOST} ${UP_TIDB_PORT}

# sleep 10 seconds to wait for the data being sent to kafka.
sleep 10

compression_algorithm=$(grep "Kafka producer uses $1 compression algorithm" "$WORK_DIR/cdc.log")
if [[ "$compression_algorithm" -ne 1 ]]; then
echo "can't found producer compression algorithm"
Expand Down

0 comments on commit a912663

Please sign in to comment.