This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new d36f2170e38 branch-2.1: [regression-test](fix) remove unused features 
in manager test #46786 (#46828)
d36f2170e38 is described below

commit d36f2170e38c9b56b2aaf18e32f3bcf0b5ef8343
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 13 12:14:47 2025 +0800

    branch-2.1: [regression-test](fix) remove unused features in manager test 
#46786 (#46828)
    
    Cherry-picked from #46786
    
    Co-authored-by: shuke <sh...@selectdb.com>
---
 .../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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to