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

dataroaring 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 8fa8c4a4aff [fix](meta) fix timeout for syncing image when FE scales 
out (#51120)
8fa8c4a4aff is described below

commit 8fa8c4a4affb832485bd677bdfaf6eb85b84afcd
Author: yagagagaga <zhangmi...@selectdb.com>
AuthorDate: Thu May 22 14:13:50 2025 +0800

    [fix](meta) fix timeout for syncing image when FE scales out (#51120)
    
    
    
    Related PR: #26003
    
    Problem Summary:
    
    > If image file is very huge, it maybe occurs http Read timed out when
    pulling image from FE Master
    
    ```java
    java.io.IOException: java.net.SocketTimeoutException: Read timed out
            at org.apache.doris.catalog.Env.getNewImage(Env.java:1664)
            at org.apache.doris.catalog.Env.getClusterIdAndRole(Env.java:1126)
            at org.apache.doris.catalog.Env.initialize(Env.java:884)
            at org.apache.doris.DorisFE.start(DorisFE.java:163)
            at org.apache.doris.DorisFE.main(DorisFE.java:83)
    Caused by: java.net.SocketTimeoutException: Read timed out
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
            at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at sun. 
reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at 
sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1952)
            at 
sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1947)
            at java.security.AccessController.doPrivileged(Native Method)
            at 
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.iava:1946)
            at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1516)
            at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500)
            at 
org.apache.doris.master.MetaHelper.getResponse(MetaHelper.java:130)
            at 
org.apache.doris.master.MetaHelper.getRemoteFile(MetaHelper.java:98)
            at org.apache.doris.catalog.Env.getNewImage(Env.java:1657)
            ... 4 more
    ```
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
index 896cc1c9b4c..e8025d3ea8a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
@@ -368,7 +368,7 @@ public class Env {
     private static final Logger LOG = LogManager.getLogger(Env.class);
     // 0 ~ 9999 used for qe
     public static final long NEXT_ID_INIT_VALUE = 10000;
-    private static final int HTTP_TIMEOUT_SECOND = 5;
+    private static final int HTTP_TIMEOUT_SECOND = 
Config.sync_image_timeout_second;
     private static final int STATE_CHANGE_CHECK_INTERVAL_MS = 100;
     private static final int REPLAY_INTERVAL_MS = 1;
     private static final String BDB_DIR = "/bdb";


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to