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

RetryingMetaStoreClient does not retry JDOExceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0, 0.13.1
    • Fix Version/s: 1.0.0
    • Component/s: None
    • Labels:
      None

      Description

      RetryingMetaStoreClient has a bug in the following bit of code:

              } else if ((e.getCause() instanceof MetaException) &&
                  e.getCause().getMessage().matches("JDO[a-zA-Z]*Exception")) {
                caughtException = (MetaException) e.getCause();
              } else {
                throw e.getCause();
              }
      

      The bug here is that java String.matches matches the entire string to the regex, and thus, that match will fail if the message contains anything before or after JDO[a-zA-Z]*Exception. The solution, however, is very simple, we should match (?s).*JDO[a-zA-Z]*Exception.*

        Attachments

        1. HIVE-9436.3.patch
          0.9 kB
          Sushanth Sowmyan
        2. HIVE-9436.2.patch
          0.9 kB
          Sushanth Sowmyan
        3. HIVE-9436.patch
          0.9 kB
          Sushanth Sowmyan

          Issue Links

            Activity

              People

              • Assignee:
                sushanth Sushanth Sowmyan
                Reporter:
                sushanth Sushanth Sowmyan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: