Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9515

NPE when MiniDFSCluster#shutdown is invoked on uninitialized reference

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jenkins

    • Hadoop Flags:
      Reviewed

      Description

      If MiniDFSCluster constructor throws an exception, the cluster object is not assigned, so shutdown() call not be called on the object.

      I saw in a recent Jenkins job where binding error threw an exception, and later on the NPE of cluster.shutdown() hid the real cause of the test failure.

      HDFS-9333 has a patch that fixes the bind error.

        Attachments

        1. HDFS-9515.005.patch
          107 kB
          Wei-Chiu Chuang
        2. HDFS-9515.004.patch
          84 kB
          Wei-Chiu Chuang
        3. HDFS-9515.003.patch
          85 kB
          Wei-Chiu Chuang
        4. HDFS-9515.002.patch
          30 kB
          Wei-Chiu Chuang
        5. HDFS-9515.001.patch
          0.7 kB
          Wei-Chiu Chuang

          Activity

            People

            • Assignee:
              jojochuang Wei-Chiu Chuang
              Reporter:
              jojochuang Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: