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

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

commit bc6d21bce6fcd16ad502e450e81e5b522b7db5fa
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 10 07:33:04 2026 +0800

    branch-4.1: [fix](test) Deflake insert overwrite auto detect failure #67571 
(#67707)
    
    Cherry-picked from #67571
    
    Co-authored-by: hui lai <[email protected]>
---
 .../test_iot_auto_detect_fail.groovy                   | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/suites/insert_overwrite_p0/test_iot_auto_detect_fail.groovy 
b/regression-test/suites/insert_overwrite_p0/test_iot_auto_detect_fail.groovy
index e6497b92447..2732836b7b3 100644
--- 
a/regression-test/suites/insert_overwrite_p0/test_iot_auto_detect_fail.groovy
+++ 
b/regression-test/suites/insert_overwrite_p0/test_iot_auto_detect_fail.groovy
@@ -150,16 +150,28 @@ PROPERTIES (
 );
     """
 
+    // The overwrite must fail because the source rows fall into a partition 
that does not exist
+    // in fail_tag and enable_auto_create_when_overwrite is false. With 
multiple parallel sink
+    // instances, equivalent errors can race to be reported. Accept each 
expected failure while
+    // still requiring the statement to fail.
+    def checkOverwriteFail = { result, exception, startTime, endTime ->
+        assertTrue(exception != null && (
+                exception.getMessage().contains('Cannot found origin 
partitions')
+                || exception.getMessage().contains('no partition for this 
tuple')
+                || exception.getMessage().contains('Insert has filtered data 
in strict mode')),
+            "expect insert-overwrite auto-detect to fail, "
+                + "but got result=${result}, 
exception=${exception?.getMessage()}")
+    }
     test {
         sql "insert overwrite table fail_tag PARTITION(*) select 
qsrq,lsh,wth,khh,dt from fail_src where dt='20241128';"
-        exception "Cannot found origin partitions"
+        check checkOverwriteFail
     }
     test {
         sql "insert overwrite table fail_tag PARTITION(*) select 
qsrq,lsh,wth,khh,dt from fail_src where dt='20241128';"
-        exception "Cannot found origin partitions"
+        check checkOverwriteFail
     }
     test {
         sql "insert overwrite table fail_tag PARTITION(*) select 
qsrq,lsh,wth,khh,dt from fail_src where dt='20241128';"
-        exception "Cannot found origin partitions"
+        check checkOverwriteFail
     }
 }


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

Reply via email to