This is an automated email from the ASF dual-hosted git repository. eldenmoon pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 46bd885200a [regression-test](fix) fix test_show_tablet.groovy bug running on mul… (#46791) 46bd885200a is described below commit 46bd885200aefa5bbd8a78b644b50ae5989edcbf Author: shuke <sh...@selectdb.com> AuthorDate: Sat Jan 11 10:52:23 2025 +0800 [regression-test](fix) fix test_show_tablet.groovy bug running on mul… (#46791) --- .../suites/show_p0/test_show_tablet.groovy | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/regression-test/suites/show_p0/test_show_tablet.groovy b/regression-test/suites/show_p0/test_show_tablet.groovy index 59e7c1a8e4d..024e90fdd19 100644 --- a/regression-test/suites/show_p0/test_show_tablet.groovy +++ b/regression-test/suites/show_p0/test_show_tablet.groovy @@ -25,14 +25,32 @@ suite("test_show_tablet") { PROPERTIES ( "replication_num" = "1" );""" - def res = sql """SHOW TABLETS FROM show_tablets_test_t limit 5, 1;""" - logger.info("result: " + res.toString()); - assertTrue(res.size() == 0) + def res = sql """ SHOW TABLETS FROM show_tablets_test_t """ + if (res.size() == 5) { + // replication num == 1 + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 5, 1;""" + logger.info("result: " + res.toString()); + assertTrue(res.size() == 0) - res = sql """SHOW TABLETS FROM show_tablets_test_t limit 3, 5;""" - assertTrue(res.size() == 2) + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 3, 5;""" + assertTrue(res.size() == 2) - res = sql """SHOW TABLETS FROM show_tablets_test_t limit 10;""" - assertTrue(res.size() == 5) + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 10;""" + assertTrue(res.size() == 5) + } else if (res.size() == 15) { + // in multi-be cluster and force_olap_table_replication_num=3 + // will change to 3 replication even though set "replication_num" = "1" in create table + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 15, 1;""" + logger.info("result: " + res.toString()); + assertTrue(res.size() == 0) + + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 13, 5;""" + assertTrue(res.size() == 2) + + res = sql """SHOW TABLETS FROM show_tablets_test_t limit 15;""" + assertTrue(res.size() == 15) + } else { + assertTrue(1 == 2) + } } \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org