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

RetryingMetaStoreClient does not retry JDOExceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.1, 0.14.0
    • 1.0.0
    • None
    • 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.2.patch
          0.9 kB
          Sushanth Sowmyan
        2. HIVE-9436.3.patch
          0.9 kB
          Sushanth Sowmyan
        3. HIVE-9436.patch
          0.9 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: