Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](case) Fix test_backup_restore_atomic_with_alter with SYNC #43601 #43647

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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}")
Expand Down Expand Up @@ -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 """
Expand Down
Loading