This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 4e9b73798fe branch-3.0: [regression-test](fix) remove unused features
in manager test #46786 (#46827)
4e9b73798fe is described below
commit 4e9b73798fe46d1d5d2b2c1ac247c28fc04f343c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 12 15:40:39 2025 +0800
branch-3.0: [regression-test](fix) remove unused features in manager test
#46786 (#46827)
Cherry-picked from #46786
Co-authored-by: shuke <[email protected]>
---
.../suites/manager/test_manager_interface_4.groovy | 37 ++++------------------
1 file changed, 6 insertions(+), 31 deletions(-)
diff --git a/regression-test/suites/manager/test_manager_interface_4.groovy
b/regression-test/suites/manager/test_manager_interface_4.groovy
index 78d8d451b7b..5de11e2007b 100644
--- a/regression-test/suites/manager/test_manager_interface_4.groovy
+++ b/regression-test/suites/manager/test_manager_interface_4.groovy
@@ -49,42 +49,17 @@ suite('test_manager_interface_4',"p0") {
futures.add( thread {
sleep(500);
- List<List<Object>> result = sql """ show proc
'/current_query_stmts' """
- logger.info("result = ${result}" )
- def x = 0
+ List<List<Object>> result = sql_return_maparray """ show
processlist """
def queryid = ""
+ def x = 0
logger.info("result = ${result}")
-
- for( int i = 0;i<result.size();i++) {
- if (result[i][7] != null &&
result[i][7].contains("18880094567") )//Statement
- {
- x = 1
- queryid = result[i][0]
- logger.info("query ID = ${queryid}")
- assertTrue(result[i][0]!= null) //QueryId
- assertTrue(result[i][1]!= null) //ConnectionId
- assertTrue(result[i][2]!= null)//Catalog
- assertTrue(result[i][3]!= null)//Database
- assertTrue(result[i][4]!= null)//User
- assertTrue(result[i][5]!= null)//ExecTime
- assertTrue(result[i][5].isNumber())//ExecTime
- assertTrue(result[i][6]!= null)//SqlHash
- }
- }
- assertTrue(x == 1)
-
- x = 0
- result = sql """ show proc '/current_queries' """
- logger.info("result = ${result}")
- for( int i = 0;i<result.size();i++) {
- if (result[i][0] == queryid )//QueryId
- {
+ for( int i =0 ;i < result.size();i++ ){
+ if (result[i]["Info"].contains("18880094567")) {
+ queryid = result[i]["QueryId"]
x = 1
- assertTrue(result[i][5]!= null)//ScanBytes
- assertTrue(result[i][6]!= null)//ProcessBytes
+ break;
}
}
- assertTrue(x == 1)
result = sql """ show processlist """
logger.info("result = ${result}")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]