Wenzhe Zhou has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/21900 )
Change subject: IMPALA-13427: Make connect timeout of statestore HA RPC tunable ...................................................................... IMPALA-13427: Make connect timeout of statestore HA RPC tunable In some deployment environment, unsuccessful socket connection attempts take long time to return error if connect timeout of the socket is set as 0. This causes statestored to tie up in unsuccessful connection attempts during initialization if its peer is not ready when statestore HA is enabled. Currently socket connect timeout of Thrift RPC is always set as 0. This patch makes socket connect timeout of Thrift RPC tunable, and adds a flag variable statestore_ha_client_rpc_conn_timeout_ms for the underlying socket connect timeout for Statestore HA RPC. Its default value equals 0, which equals the default value of TSocket.connTimeout_. Testing: - Added new test cases for statestore HA with non zero value for statestore_ha_client_rpc_conn_timeout_ms. - Passed core tests. Change-Id: Ie5840a76b4a34b4714c47b86f6366328b5ceed3a --- M be/src/rpc/thrift-client.h M be/src/runtime/client-cache.cc M be/src/runtime/client-cache.h M be/src/statestore/statestore.cc M tests/custom_cluster/test_statestored_ha.py 5 files changed, 68 insertions(+), 20 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/00/21900/2 -- To view, visit http://gerrit.cloudera.org:8080/21900 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: Ie5840a76b4a34b4714c47b86f6366328b5ceed3a Gerrit-Change-Number: 21900 Gerrit-PatchSet: 2 Gerrit-Owner: Wenzhe Zhou <[email protected]> Gerrit-Reviewer: Abhishek Rawat <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
