From 33363048f4e354552365c02da673832252f67888 Mon Sep 17 00:00:00 2001 From: daidai Date: Sat, 7 Dec 2024 06:35:46 +0800 Subject: [PATCH] [fix](case)fix manager show proc case unstable. (#45040) ### What problem does this PR solve? Problem Summary: fix manager show proc case unstable. Replace pipeline-unfriendly `select sleep(xxx)` in case. --- .../manager/test_manager_interface_1.groovy | 122 --------------- .../manager/test_manager_interface_4.groovy | 146 ++++++++++++++++++ 2 files changed, 146 insertions(+), 122 deletions(-) create mode 100644 regression-test/suites/manager/test_manager_interface_4.groovy diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy b/regression-test/suites/manager/test_manager_interface_1.groovy index bbdb1a3fdd75f5..91738cfb6ba8b4 100644 --- a/regression-test/suites/manager/test_manager_interface_1.groovy +++ b/regression-test/suites/manager/test_manager_interface_1.groovy @@ -496,128 +496,6 @@ DISTRIBUTED BY HASH(`k1`) BUCKETS 1""")) test_table_index() - - - -// show proc '/current_query_stmts' -// show proc '/current_queries' -// show processlist -// kill query $query_id -// SHOW PROC '/cluster_health/tablet_health' - def test_proc = { - - def futures = [] - - - futures.add( thread { - - try{ - sql """ select sleep(4.809); """ - }catch(Exception e){ - - } - }) - futures.add( thread { - sleep(1000); - List> result = sql """ show proc '/current_query_stmts' """ - logger.info("result = ${result}" ) - def x = 0 - def queryid = "" - logger.info("result = ${result}") - - for( int i = 0;i> result = sql """ show proc '/current_query_stmts' """ + logger.info("result = ${result}" ) + def x = 0 + def queryid = "" + logger.info("result = ${result}") + + for( int i = 0;i