Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8162

Remove Method DirectoryCollection#verifyDirUsingMkdir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • nodemanager
    • None
    • Reviewed

    Description

      First of all, DirectoryCollection#verifyDirUsingMkdir doesn't do what it claims to do, it creates a file but its Java doc says it create a dir. Because of that, it doesn't compatible with ReadWriteDiskValidator because the validator will throw an exception if it isn't dir. What's more, it is no longer needed after HADOOP-13738 (DiskChecker should perform some disk IO). It duplicates what HADOOP-13738 does. We should remove it.

      Attachments

        1. YARN-8162.001.patch
          2 kB
          Yufei Gu
        2. YARN-8162.002.patch
          2 kB
          Yufei Gu

        Activity

          People

            yufeigu Yufei Gu
            yufeigu Yufei Gu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: