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

make retryable SQLExceptions in TxnHandler configurable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.3.0, 2.1.0
    • Component/s: Transactions
    • Labels:
      None

      Description

      same for CompactionTxnHandler
      would be convenient if the user could specify some RegEx (perhaps by db type) which will tell TxnHandler.checkRetryable() that this is should be retried.

      The regex should probably apply to String produced by

        private static String getMessage(SQLException ex) {
          return ex.getMessage() + "(SQLState=" + ex.getSQLState() + ",ErrorCode=" + ex.getErrorCode() + ")";
        }
      

      This make it flexible.

      See if we need to add Db type (and possibly version) of the DB being used.

      With 5 different DBs supported this gives control end users.

        Attachments

        1. HIVE-12637.2.patch
          6 kB
          Wei Zheng
        2. HIVE-12637.1.patch
          5 kB
          Wei Zheng

          Activity

            People

            • Assignee:
              wzheng Wei Zheng
              Reporter:
              ekoifman Eugene Koifman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: