This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new e95e777b346 [opt](test)Add expected indices count check (#39024)
(#39060)
e95e777b346 is described below
commit e95e777b34621decaf658c20011604c96cc1cfe5
Author: qiye <[email protected]>
AuthorDate: Fri Aug 9 01:37:44 2024 +0800
[opt](test)Add expected indices count check (#39024) (#39060)
## Proposed changes
bp #39024
---
regression-test/plugins/plugin_curl_requester.groovy | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/regression-test/plugins/plugin_curl_requester.groovy
b/regression-test/plugins/plugin_curl_requester.groovy
index 0fc102960cc..bb0bcbb7572 100644
--- a/regression-test/plugins/plugin_curl_requester.groovy
+++ b/regression-test/plugins/plugin_curl_requester.groovy
@@ -257,7 +257,8 @@ logger.info("Added 'be_report_task' function to Suite")
Suite.metaClass.check_nested_index_file = { ip, port, tablet_id,
expected_rowsets_count, expected_indices_count, format ->
def (code, out, err) = http_client("GET",
String.format("http://%s:%s/api/show_nested_index_file?tablet_id=%s", ip, port,
tablet_id))
logger.info("Run show_nested_index_file_on_tablet: code=" + code + ",
out=" + out + ", err=" + err)
- if (code == 500) {
+ // only when the expected_indices_count is 0, the tablet may not have the
index file.
+ if (code == 500 && expected_indices_count == 0) {
assertEquals("E-6003", parseJson(out.trim()).status)
assertTrue(parseJson(out.trim()).msg.contains("not found"))
return
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]