-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[optimize] optimize default value for thriftserver's config key "thrift_client_timeout_ms" #4808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c6404c1
e90a783
6e104ef
dd2ed06
7740c47
95c2bd1
e8330af
f7537fb
146a73b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
| * | ||
| */ | ||
| @ConfField public static int thrift_client_timeout_ms = 30000; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when will fe close the socket frequently?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ConfField public static int thrift_client_timeout_ms = 0;