wecharyu opened a new pull request, #4150:
URL: https://github.com/apache/hive/pull/4150
### What changes were proposed in this pull request?
Currently `HiveMetaStoreClient` use `CLIENT_SOCKET_TIMEOUT` as both socket
timeout and connection timeout, we want to introduce a new HiveMetaStoreClient
config for connection timeout:
```java
CLIENT_CONNECTION_TIMEOUT("metastore.client.connection.timeout",
"hive.metastore.client.connection.timeout", 10,
TimeUnit.SECONDS, "MetaStore Client connection timeout in
seconds"),
```
### Why are the changes needed?
1. achieve a more flexible config for client socket timeout and connection
timeout.
2. we can use a smaller connection timeout to fail-fast reconnect to another
HMS server.
### Does this PR introduce _any_ user-facing change?
Yes, user can set the client connection timeout by this conf.
### How was this patch tested?
Add a unit test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]