Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
-
None
Description
>>>>
for (URI store : metastoreUris) {
....
...
if (isConnected)
}
// Wait before launching the next round of connection retries.
if (retryDelaySeconds > 0) {
try
catch (InterruptedException ignore) {}
}
>>>>
By default "hive.metastore.client.connect.retry.delay" is set to 1 second. If it is set to 10 seconds, this code will wait for 10 seconds even if a successful connection is made in first attempt itself.
This can be avoided by changing to
>>>>
if (!isConnected && retryDelaySeconds > 0) {
....
>>>>