Skip to content
6 changes: 3 additions & 3 deletions fe/fe-core/src/main/java/org/apache/doris/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ public class Config extends ConfigBase {

/**
* The connection timeout and socket timeout config for thrift server
* The value for thrift_client_timeout_ms is set to be larger than zero to prevent
* some hang up problems in java.net.SocketInputStream.socketRead0
* The default value for thrift_client_timeout_ms is set to be zero to prevent readtimeout
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The connection timeout and socket timeout config for thrift server
The default value for thrift_client_timeout_ms is set to be zero to prevent readtimeout

@ConfField public static int thrift_client_timeout_ms = 0;

*/
@ConfField public static int thrift_client_timeout_ms = 30000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when will fe close the socket frequently?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in our case, query information_schema.tables. i find fe would send a TCP RST command(try tcpdump 9020 in fe) to be to close the socket becasuse of thrift_client_timeout_ms is meet, the be log comes "no more data to read", the be would retry in 1s(default).

@ConfField public static int thrift_client_timeout_ms = 0;

/**
* The backlog_num for thrift server
Expand Down