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

checkDiskError doesn't work during datanode startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.1.4, 3.2.2
    • datanode
    • None
    • Reviewed

    Description

      the function checkDiskError() is called before addBlockPool, but list bpSlices is empty this time. So the function check() in FsVolumeImpl.java does nothing.

      @Override
      public VolumeCheckResult check(VolumeCheckContext ignored)
      throws DiskErrorException {
      // TODO:FEDERATION valid synchronization
      for (BlockPoolSlice s : bpSlices.values())

      { s.checkDirs(); }

      return VolumeCheckResult.HEALTHY;
      }

      Attachments

        1. HDFS-14993.patch
          3 kB
          Yang Yun
        2. HDFS-14993.patch
          3 kB
          Yang Yun
        3. HDFS-14993.patch
          3 kB
          Yang Yun

        Activity

          People

            hadoop_yangyun Yang Yun
            hadoop_yangyun Yang Yun
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: