From ca1e2ddf43b729d643f8d6cffaf3f536ace5b0de Mon Sep 17 00:00:00 2001 From: zhannngchen <48427519+zhannngchen@users.noreply.github.com> Date: Sun, 11 Jun 2023 13:51:49 +0800 Subject: [PATCH] [fix](regression) tests in unique_with_mow_p0/partial_update are flaky (#20633) --- .../partial_update/test_partial_update.groovy | 5 ++++- .../partial_update/test_partial_update_default_value.groovy | 5 ++++- .../partial_update/test_partial_update_orc.groovy | 5 ++++- .../partial_update/test_partial_update_publish.groovy | 2 ++ .../test_partial_update_with_row_column.groovy | 3 +++ 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update.groovy index 908e18e312..7bfcd75fc5 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update.groovy @@ -52,8 +52,11 @@ suite("test_primary_key_partial_update", "p0") { file 'basic.csv' time 10000 // limit inflight 10s } + + sql "sync" + qt_select_default """ - select * from ${tableName} + select * from ${tableName} order by id; """ // drop drop diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_default_value.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_default_value.groovy index 61f4386642..f13eb477b7 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_default_value.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_default_value.groovy @@ -52,8 +52,11 @@ suite("test_primary_key_partial_update_default_value", "p0") { file 'default.csv' time 10000 // limit inflight 10s } + + sql "sync" + qt_select_default """ - select * from ${tableName} + select * from ${tableName} order by id; """ // drop drop diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_orc.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_orc.groovy index c76ae1395d..852df95dd1 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_orc.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_orc.groovy @@ -51,8 +51,11 @@ suite("test_primary_key_partial_update_orc", "p0") { file 'update.orc' time 10000 // limit inflight 10s } + + sql "sync" + qt_select_0 """ - select * from ${tableName}; + select * from ${tableName} order by col_0; """ // drop drop diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_publish.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_publish.groovy index ee7b5cd87d..5f83c092a9 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_publish.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_publish.groovy @@ -61,6 +61,8 @@ suite("test_primary_key_partial_update_publish", "p0") { time 10000 // limit inflight 10s } + sql "sync" + qt_select_default """ select * from ${tableName} order by id; """ diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_row_column.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_row_column.groovy index 1b2f7fbd89..1ba8f9a368 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_row_column.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_row_column.groovy @@ -53,6 +53,9 @@ suite("test_primary_key_partial_update_with_row_column", "p0") { file 'basic.csv' time 10000 // limit inflight 10s } + + sql "sync" + qt_select_default """ select * from ${tableName} order by id """