This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 82fa437fd0b [fix](test) Fix flaky assertion in
test_export_max_file_size (#62356)
82fa437fd0b is described below
commit 82fa437fd0bfa0e6b0e0a4be63636fc677a79bfd
Author: Qi Chen <[email protected]>
AuthorDate: Sat Apr 11 20:41:57 2026 +0800
[fix](test) Fix flaky assertion in test_export_max_file_size (#62356)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
Cherry-pick #62341
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
regression-test/suites/export_p2/test_export_max_file_size.groovy | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/regression-test/suites/export_p2/test_export_max_file_size.groovy
b/regression-test/suites/export_p2/test_export_max_file_size.groovy
index c77da452c9c..0e6e8d76bd6 100644
--- a/regression-test/suites/export_p2/test_export_max_file_size.groovy
+++ b/regression-test/suites/export_p2/test_export_max_file_size.groovy
@@ -135,7 +135,9 @@ suite("test_export_max_file_size", "p2,external") {
def outfile_info = waiting_export.call(uuid)
def json = parseJson(outfile_info)
assert json instanceof List
- assertEquals("25", json.fileNumber[0][0])
+ def fileNum = Integer.parseInt(json.fileNumber[0][0])
+ assertTrue(fileNum > 1, "Export with max_file_size should produce
multiple files, but got ${fileNum}")
+
def outfile_url = json.url[0][0]
qt_sql_count """
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]