[ https://issues.apache.org/jira/browse/HIVE-18886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated HIVE-18886: ------------------------------------ Resolution: Fixed Fix Version/s: 3.0.0 Status: Resolved (was: Patch Available) > ACID: NPE on unexplained mysql exceptions > ------------------------------------------ > > Key: HIVE-18886 > URL: https://issues.apache.org/jira/browse/HIVE-18886 > Project: Hive > Issue Type: Bug > Components: Transactions > Affects Versions: 3.0.0 > Reporter: Gopal V > Assignee: Gopal V > Priority: Major > Fix For: 3.0.0 > > Attachments: HIVE-18886.1.patch > > > At 200+ sessions on a single HS2, the DbLock impl fails to propagate mysql > exceptions > {code} > 2018-03-06T22:55:16,197 ERROR [HiveServer2-Background-Pool: Thread-12867]: > ql.Driver (:()) - FAILED: Error in acquiring locks: null > java.lang.NullPointerException > at > org.apache.hadoop.hive.metastore.DatabaseProduct.isDeadlock(DatabaseProduct.java:56) > at > org.apache.hadoop.hive.metastore.txn.TxnHandler.checkRetryable(TxnHandler.java:2459) > at > org.apache.hadoop.hive.metastore.txn.TxnHandler.getOpenTxns(TxnHandler.java:499) > {code} > {code} > return e instanceof SQLTransactionRollbackException > || ((dbProduct == MYSQL || dbProduct == POSTGRES || dbProduct == > SQLSERVER) > && e.getSQLState().equals("40001")) > || (dbProduct == POSTGRES && e.getSQLState().equals("40P01")) > || (dbProduct == ORACLE && (e.getMessage().contains("deadlock > detected") > || e.getMessage().contains("can't serialize access for this > transaction"))); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)