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

liaoxin 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 7c470ce70cf [fix](regression-case) Fix test_dml_stream_load_auth, use 
sync function but not async (#58286)
7c470ce70cf is described below

commit 7c470ce70cf02cee0580fc3fd0d1558c9c896cd2
Author: Refrain <[email protected]>
AuthorDate: Mon Nov 24 20:45:02 2025 +0800

    [fix](regression-case) Fix test_dml_stream_load_auth, use sync function but 
not async (#58286)
---
 .../auth_call/test_dml_stream_load_auth.groovy      | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/regression-test/suites/auth_call/test_dml_stream_load_auth.groovy 
b/regression-test/suites/auth_call/test_dml_stream_load_auth.groovy
index 1f142b5835c..ba075682389 100644
--- a/regression-test/suites/auth_call/test_dml_stream_load_auth.groovy
+++ b/regression-test/suites/auth_call/test_dml_stream_load_auth.groovy
@@ -66,22 +66,25 @@ suite("test_dml_stream_load_auth","p0,auth_call") {
 
 
     def proc = cm.execute()
-    def sout = new StringBuilder(), serr = new StringBuilder()
-    proc.consumeProcessOutput(sout, serr)
     proc.waitForOrKill(7200000)
-    logger.info("std out: " + sout + "std err: " + serr)
-    assertTrue(sout.toString().indexOf("denied") != -1)
+    def sout = proc.inputStream.text.trim()
+    def serr = proc.errorStream.text.trim()
+    logger.info("std out: " + sout)
+    logger.info("std err: " + serr)
+    assertTrue(sout.indexOf("denied") != -1,
+               "Expected 'denied' message not found in response: '${sout}'")
 
 
     sql """grant load_priv on ${dbName}.${tableName} to ${user}"""
 
     proc = cm.execute()
-    sout = new StringBuilder()
-    serr = new StringBuilder()
-    proc.consumeProcessOutput(sout, serr)
     proc.waitForOrKill(7200000)
-    logger.info("std out: " + sout + "std err: " + serr)
-    assertTrue(sout.toString().indexOf("denied") == -1)
+    def sout2 = proc.inputStream.text.trim()
+    def serr2 = proc.errorStream.text.trim()
+    logger.info("std out: " + sout2)
+    logger.info("std err: " + serr2)
+    assertTrue(sout2.indexOf("denied") == -1,
+               "Unexpected 'denied' message in response after granting 
load_priv: '${sout2}'")
 
     connect(user, "${pwd}", context.config.jdbcUrl) {
         test {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to