Skip to content

Commit

Permalink
Skip corruption check on last WAL (#5596)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmdeng committed Apr 3, 2024
1 parent 685a06d commit 89523ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/ebs-warmup/warmup-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ while [ $# -gt 0 ]; do
;;
esac
echo "also trying to verify the sst files in $1"
if find "$1" -iname '??????.LOG' -print0 | xargs -0 -I% sh -c 'echo -n "%: " >&2; /tikv-ctl ldb dump_wal --walfile=%; echo >&2' 2>&1 >/dev/null | grep "Corruption"; then
if find "$1" -iname '[0-9]*.LOG' -size +0c -print0 | sort -z | head -z -n -1 | xargs -0 -I% sh -c 'echo -n "%: " >&2; /tikv-ctl ldb dump_wal --walfile=%; echo >&2' 2>&1 >/dev/null | grep "Corruption"; then
echo "There are some files corrupted!"
echo $bg_works | xargs kill || true
wait || true
echo "HINT: All files in the dir, if the last one corrupted, you may ignore it:"
echo "Current WALs:"
find . -iname '??????.LOG' -print | sort
exit 1
fi
Expand Down

0 comments on commit 89523ac

Please sign in to comment.