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

Skip safemode if blockTotal is 0 in new NN

    XMLWordPrintableJSON

Details

    Description

      When new NN is installed, it spends 30-45 seconds in Safemode. When blockTotal is 0, it should be possible to short circuit safemode check in BlockManagerSafeMode::areThresholdsMet.

      https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerSafeMode.java#L571

      Attachments

        1. HDFS-14952.001.patch
          0.8 kB
          Xiaoqiao He
        2. HDFS-14952.002.patch
          2 kB
          Xiaoqiao He
        3. HDFS-14952.003.patch
          4 kB
          Xiaoqiao He

        Issue Links

          Activity

            People

              hexiaoqiao Xiaoqiao He
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: