Skip to content
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

HIVE-27172: (2.3) Add the HMS client connection timeout config #5115

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Mar 4, 2024

What changes were proposed in this pull request?

Backport HIVE-27172 to branch-2.3

Why are the changes needed?

Hive 2.3 is used in Apache Spark to communicate with HMS, while making the socket connect timeout configurable and independent with socket timeout is extremely useful.

In practice, we deploy multi HMS instances to achieve load balance and disaster recovery, we expect a short connect timeout in case the target HMS instance is under high load or has network issues, so that the HMS client could quickly failover to another one. While we expect a little bit longer socket timeout in cases some thrift invocations take a long time, e.g. a HMS may take a dozen minutes to handle a table/partition request if the table is large or has million partitions.

Does this PR introduce any user-facing change?

Add a new configuration while the default value keeps the existing behavior.

Is the change a dependency upgrade?

No

How was this patch tested?

New tests are added.

@pan3793
Copy link
Member Author

pan3793 commented Mar 4, 2024

cc @sunchao @wangyum

Copy link
Contributor

@cxzl25 cxzl25 left a comment

Choose a reason for hiding this comment

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

LGTM

@cxzl25
Copy link
Contributor

cxzl25 commented Mar 5, 2024

cc @zhangbutao

Copy link
Contributor

@zhangbutao zhangbutao left a comment

Choose a reason for hiding this comment

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

+1 LGTM
Looks like branch-2.3 can't get a green CI.
I just checked the changed code block on branch-2.3 and master branch.

@zhangbutao zhangbutao merged commit 36b3261 into apache:branch-2.3 Mar 6, 2024
1 check failed
@pan3793
Copy link
Member Author

pan3793 commented Mar 6, 2024

Thanks, @zhangbutao and @cxzl25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants