This is an automated email from the ASF dual-hosted git repository.
morningman 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 4e0f9bb21fe [fix](test) Fix flaky assertion in
test_export_max_file_size (#62341)
4e0f9bb21fe is described below
commit 4e0f9bb21fe90ed5a8dc725613d24622978d177f
Author: Qi Chen <[email protected]>
AuthorDate: Mon Apr 13 11:42:15 2026 +0800
[fix](test) Fix flaky assertion in test_export_max_file_size (#62341)
`test_export_max_file_size` fails intermittently with file count
mismatch (e.g., expected 25, got 23). The test uses random data via
rand() which produces variable-width CSV rows (especially float/double
columns), causing the total exported data size to fluctuate between
runs. With max_file_size=5MB, this leads to different file counts each
time.
Fix: Replace exact assertEquals("25", fileNumber) with
assertTrue(fileNum > 1) to verify that file splitting occurs without
depending on an exact count. Data correctness is already verified by
subsequent load-back and comparison.
---
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]