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

Assumption in exception handling can be wrong in DagUtils.localizeResource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Tez
    • Labels:
      None
    • Target Version/s:

      Description

      In localizeResource once we got an IOException, we always assume this is due to another thread writing the same file. But that is not always the case. Even without the interference from other threads, it may still get an IOException (RemoteException) due to failure of copyFromLocalFile in a specific environment, for example, in a kerberized HDFS encryption zone where the TGT is expired.

      We'd better fail early with different message to avoid confusion.

        Attachments

        1. HIVE-15421.3.patch
          0.9 kB
          Wei Zheng
        2. HIVE-15421.2.patch
          0.9 kB
          Wei Zheng
        3. HIVE-15421.1.patch
          0.8 kB
          Wei Zheng

          Activity

            People

            • Assignee:
              wzheng Wei Zheng
              Reporter:
              wzheng Wei Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: