github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/tests/integration_tests/_utils/check_redo_resolved_ts (about) 1 #!/bin/bash 2 # parameter 1: changefeed id 3 # parameter 2: check tso 4 # parameter 3: external storage path 5 # parameter 4: temporary download path 6 7 changefeedid=$1 8 check_tso=$2 9 storage_path=$3 10 read_dir=$4 11 12 # check resolved ts has been persisted in redo log meta 13 rts=$(cdc redo meta --storage="$storage_path" --tmp-dir="$read_dir" | grep -oE "resolved-ts:[0-9]+" | awk -F: '{print $2}') 14 if [[ "$rts" -le "$check_tso" ]]; then 15 echo "global resolved ts $rts not forward to $check_tso" 16 exit 1 17 fi