This commit is contained in:
Nikita Taranov 2024-03-08 14:27:50 +01:00
parent 2b52583e06
commit 4f27dd8f9c
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
data.bin doesn't exist: while restoring part all_2_2_0 OK
RESTORED RESTORED
1 1
3 3

View File

@ -26,7 +26,7 @@ ln -s "$SRC_BACKUP_DIR/$SRC_BACKUP_FILENAME" "$BACKUPS_DIR/$BACKUP_FILENAME"
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS tbl" $CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS tbl"
# First try to restore with the setting `restore_broken_parts_as_detached` set to false. # First try to restore with the setting `restore_broken_parts_as_detached` set to false.
$CLICKHOUSE_CLIENT --query "RESTORE TABLE default.tbl AS tbl FROM $BACKUP_NAME" 2>&1 | grep -o -m 1 "data.bin doesn't exist: while restoring part all_2_2_0" $CLICKHOUSE_CLIENT --query "RESTORE TABLE default.tbl AS tbl FROM $BACKUP_NAME" 2>&1 | tr -d \\n | grep "data.bin doesn't exist" | grep "while restoring part all_2_2_0" > /dev/null && echo "OK" || echo "FAILED"
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS tbl" $CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS tbl"