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

jianliangqi 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 f62b2b29676 [opt](test)Increase the timeout of http request (#39077)
f62b2b29676 is described below

commit f62b2b29676ee4809ca0c5f91d57b97e5beae153
Author: qiye <[email protected]>
AuthorDate: Thu Aug 8 20:04:11 2024 +0800

    [opt](test)Increase the timeout of http request (#39077)
    
    ## Proposed changes
    `show_nested_index_file` http api's response may be large with variant
    table, so we increase the timeout.
---
 regression-test/plugins/plugin_curl_requester.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/regression-test/plugins/plugin_curl_requester.groovy 
b/regression-test/plugins/plugin_curl_requester.groovy
index f78ff21a79e..c54d99c0943 100644
--- a/regression-test/plugins/plugin_curl_requester.groovy
+++ b/regression-test/plugins/plugin_curl_requester.groovy
@@ -36,7 +36,7 @@ Suite.metaClass.http_client = { String method, String url /* 
param */ ->
         throw new Exception("Invalid url: ${url}")
     }
     
-    Integer timeout = 60 // seconds
+    Integer timeout = 300 // seconds
     Integer maxRetries = 10
     Integer retryCount = 0
     Integer sleepTime = 1000 // milliseconds
@@ -90,6 +90,7 @@ Suite.metaClass.http_client = { String method, String url /* 
param */ ->
                 timeout = timeout + 10
                 logger.warn("Read timed out, retrying 
(${++retryCount}/${maxRetries}): ${e.message}")
             } catch (Exception e) {
+                code = 500 // Internal Server Error
                 logger.error("Error executing HTTP request: ${e.message}")
                 err = e.message
                 return [code, out, err]
@@ -101,6 +102,7 @@ Suite.metaClass.http_client = { String method, String url 
/* param */ ->
 
         logger.error("HTTP request failed after ${maxRetries} attempts")
         err = "Failed after ${maxRetries} attempts"
+        code = 500 // Internal Server Error
         return [code, out, err]
     } finally {
         httpClient.close()


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

Reply via email to