Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3936

MiniDFSCluster shutdown races with BlocksMap usage

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Looks like HDFS-3664 didn't fix the whole issue because the added join times out because the thread closing the BM (FSN#stopCommonServices) holds the FSN lock while closing the BM and the BM is block uninterruptedly trying to aquire the FSN lock.

      2012-09-13 18:54:12,526 FATAL hdfs.MiniDFSCluster (MiniDFSCluster.java:shutdown(1355)) - Test resulted in an unexpected exit
      org.apache.hadoop.util.ExitUtil$ExitException: Fatal exception with message null
      stack trace
      java.lang.NullPointerException
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlocksMap.getBlockCollection(BlocksMap.java:101)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWorkForBlocks(BlockManager.java:1132)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWork(BlockManager.java:1107)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeDatanodeWork(BlockManager.java:3061)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager$ReplicationMonitor.run(BlockManager.java:3023)
      	at java.lang.Thread.run(Thread.java:662)
      
      1. hdfs-3936.txt
        14 kB
        Eli Collins
      2. hdfs-3936.txt
        0.9 kB
        Eli Collins
      3. hdfs-3936.txt
        2 kB
        Eli Collins

        Issue Links

          Activity

          Eli Collins created issue -
          Eli Collins made changes -
          Field Original Value New Value
          Link This issue relates to HDFS-3664 [ HDFS-3664 ]
          Eli Collins made changes -
          Link This issue relates to HDFS-3937 [ HDFS-3937 ]
          Eli Collins made changes -
          Attachment hdfs-3936.txt [ 12545118 ]
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Attachment hdfs-3936.txt [ 12545240 ]
          Eli Collins made changes -
          Attachment hdfs-3936.txt [ 12545257 ]
          Eli Collins made changes -
          Link This issue is duplicated by HDFS-3933 [ HDFS-3933 ]
          Eli Collins made changes -
          Summary MiniDFSCluster shutdown may fail due to BlocksMap#getBlockCollection NPE MiniDFSCluster shutdown races with BlocksMap usage
          Eli Collins made changes -
          Link This issue relates to HDFS-3948 [ HDFS-3948 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 2.0.2-alpha [ 12322472 ]
          Fix Version/s 2.0.3-alpha [ 12323274 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Eli Collins
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development