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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 8eb3f1b1119 branch-4.0: [fix](regression-case) Fix 
test_dml_stream_load_auth, use sync function but not async #58286 (#58314)
8eb3f1b1119 is described below

commit 8eb3f1b1119de245174df3b95b1929aad6fbd9c6
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 25 09:54:08 2025 +0800

    branch-4.0: [fix](regression-case) Fix test_dml_stream_load_auth, use sync 
function but not async #58286 (#58314)
    
    Cherry-picked from #58286
    
    Co-authored-by: Refrain <[email protected]>
---
 .../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