Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6148

LeaseManager crashes while initiating block recovery

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      While running branch-2.4, the LeaseManager crashed with an NPE. This does not always happen on block recovery.

      Exception in thread
      "org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor@5d66b728"
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction$
      ReplicaUnderConstruction.isAlive(BlockInfoUnderConstruction.java:121)
      at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction.
      initializeBlockRecovery(BlockInfoUnderConstruction.java:286)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.internalReleaseLease(FSNamesystem.java:3746)
      at org.apache.hadoop.hdfs.server.namenode.LeaseManager.checkLeases(LeaseManager.java:474)
      at org.apache.hadoop.hdfs.server.namenode.LeaseManager.access$900(LeaseManager.java:68)
      at org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor.run(LeaseManager.java:411)
      at java.lang.Thread.run(Thread.java:722)

        Issue Links

          Activity

          Kihwal Lee created issue -
          Kihwal Lee made changes -
          Field Original Value New Value
          Description While running branch-2.4, the LeaseManager crashed with an NPE. This does not always happen on block recovery.

          {panel}
          Exception in thread
          "org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor@5d66b728"
          java.lang.NullPointerException
                  at
          org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction$ReplicaUnderConstruction.isAlive(BlockInfoUnderConstruction.java:121)
                  at
          org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction.initializeBlockRecovery(BlockInfoUnderConstruction.java:286)
                  at
          org.apache.hadoop.hdfs.server.namenode.FSNamesystem.internalReleaseLease(FSNamesystem.java:3746)
                  at
          org.apache.hadoop.hdfs.server.namenode.LeaseManager.checkLeases(LeaseManager.java:474)
                  at
          org.apache.hadoop.hdfs.server.namenode.LeaseManager.access$900(LeaseManager.java:68)
                  at
          org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor.run(LeaseManager.java:411)
                  at java.lang.Thread.run(Thread.java:722)
          {panel}
          While running branch-2.4, the LeaseManager crashed with an NPE. This does not always happen on block recovery.

          {panel}
          Exception in thread
          "org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor@5d66b728"
          java.lang.NullPointerException
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction$ReplicaUnderConstruction.isAlive(BlockInfoUnderConstruction.java:121)
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction.initializeBlockRecovery(BlockInfoUnderConstruction.java:286)
                  at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.internalReleaseLease(FSNamesystem.java:3746)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.checkLeases(LeaseManager.java:474)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.access$900(LeaseManager.java:68)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor.run(LeaseManager.java:411)
                  at java.lang.Thread.run(Thread.java:722)
          {panel}
          Kihwal Lee made changes -
          Description While running branch-2.4, the LeaseManager crashed with an NPE. This does not always happen on block recovery.

          {panel}
          Exception in thread
          "org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor@5d66b728"
          java.lang.NullPointerException
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction$ReplicaUnderConstruction.isAlive(BlockInfoUnderConstruction.java:121)
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction.initializeBlockRecovery(BlockInfoUnderConstruction.java:286)
                  at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.internalReleaseLease(FSNamesystem.java:3746)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.checkLeases(LeaseManager.java:474)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.access$900(LeaseManager.java:68)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor.run(LeaseManager.java:411)
                  at java.lang.Thread.run(Thread.java:722)
          {panel}
          While running branch-2.4, the LeaseManager crashed with an NPE. This does not always happen on block recovery.

          {panel}
          Exception in thread
          "org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor@5d66b728"
          java.lang.NullPointerException
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction$
                      ReplicaUnderConstruction.isAlive(BlockInfoUnderConstruction.java:121)
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction.
                      initializeBlockRecovery(BlockInfoUnderConstruction.java:286)
                  at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.internalReleaseLease(FSNamesystem.java:3746)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.checkLeases(LeaseManager.java:474)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager.access$900(LeaseManager.java:68)
                  at org.apache.hadoop.hdfs.server.namenode.LeaseManager$Monitor.run(LeaseManager.java:411)
                  at java.lang.Thread.run(Thread.java:722)
          {panel}
          Kihwal Lee made changes -
          Affects Version/s 2.3.0 [ 12325255 ]
          Affects Version/s 2.4.0 [ 12326143 ]
          Kihwal Lee made changes -
          Assignee Kihwal Lee [ kihwal ]
          Kihwal Lee made changes -
          Link This issue is duplicated by HDFS-6094 [ HDFS-6094 ]
          Kihwal Lee made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]

            People

            • Assignee:
              Kihwal Lee
              Reporter:
              Kihwal Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development