Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18886

ACID: NPE on unexplained mysql exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Transactions
    • None

    Description

      At 200+ sessions on a single HS2, the DbLock impl fails to propagate mysql exceptions

      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)
      
          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")));
      

      Attachments

        1. HIVE-18886.1.patch
          1 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: