Jason Dere created HIVE-22530:
---------------------------------

             Summary: Connection pool timeout in TxnHandler.java is hardcoded 
to 30 secs
                 Key: HIVE-22530
                 URL: https://issues.apache.org/jira/browse/HIVE-22530
             Project: Hive
          Issue Type: Bug
          Components: Locking
            Reporter: Jason Dere


If the time to acquire locks gets long enough, we can end up running into the 
time limit for acquiring DB connections in TxnHandler:

{noformat}
2019-07-23 11:49:54,285 ERROR [HiveServer2-Background-Pool: Thread-3881156]: 
operation.Operation (SQLOperation.java:run(258)) - Error running hive query:
org.apache.hive.service.cli.HiveSQLException: Error while processing statement: 
FAILED: Error in acquiring locks: Error communicating with the metastore

Caused by: org.apache.hadoop.hive.ql.lockmgr.LockException: Error communicating 
with the metastore
Caused by: MetaException(message:Unable to update transaction database 
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error 
Timeout waiting for idle object
{noformat}

This appears to be hard-coded to 30 seconds here: 
https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java#L2359
It may sense to either make this configurable or eliminate the timeout 
altogether.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to