From c67fb4eb48e7d72ec13e92a981a53bbc423227c4 Mon Sep 17 00:00:00 2001 From: walter Date: Tue, 12 Nov 2024 14:03:04 +0800 Subject: [PATCH] [fix](case) Fix test_backup_restore_atomic_with_alter with SYNC #43601 (#43647) cherry pick from #43601 --- .../test_backup_restore_atomic_with_alter.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regression-test/suites/backup_restore/test_backup_restore_atomic_with_alter.groovy b/regression-test/suites/backup_restore/test_backup_restore_atomic_with_alter.groovy index b66ff391f1501f..8974b87c09a82b 100644 --- a/regression-test/suites/backup_restore/test_backup_restore_atomic_with_alter.groovy +++ b/regression-test/suites/backup_restore/test_backup_restore_atomic_with_alter.groovy @@ -108,6 +108,7 @@ suite("test_backup_restore_atomic_with_alter", "backup_restore") { "atomic_restore" = "true" ) """ + sql "SYNC" boolean restore_paused = false for (int k = 0; k < 60; k++) { @@ -121,6 +122,8 @@ suite("test_backup_restore_atomic_with_alter", "backup_restore") { } assertTrue(restore_paused) + sql "SYNC" + // 0. table_1 has in_atomic_restore property def show_result = sql """ SHOW CREATE TABLE ${dbName}.${tableNamePrefix}_1 """ logger.info("SHOW CREATE TABLE ${tableNamePrefix}_1: ${show_result}") @@ -224,6 +227,7 @@ suite("test_backup_restore_atomic_with_alter", "backup_restore") { sql "CANCEL RESTORE FROM ${dbName}" + sql "SYNC" // 5. The restore job is cancelled, the in_atomic_restore property has been removed. show_result = sql """ SHOW CREATE TABLE ${dbName}.${tableNamePrefix}_1 """