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

checkDiskError doesn't work during datanode startup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.1.4, 3.2.2
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: