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

Fix findbug in DirectoryScanner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 2.10.1
    • None
    • None
    • Reviewed

    Description

      There is a findbug in DirectoryScanner.

      Multithreaded correctness Warnings
      
      org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.reconcile() calls Thread.sleep() with a lock held
      Bug type SWL_SLEEP_WITH_LOCK_HELD (click for details) 
      In class org.apache.hadoop.hdfs.server.datanode.DirectoryScanner
      In method org.apache.hadoop.hdfs.server.datanode.DirectoryScanner.reconcile()
      At DirectoryScanner.java:[line 441]
      

      https://builds.apache.org/job/PreCommit-HDFS-Build/28498/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html

      Attachments

        1. HDFS-15048.001.patch
          1 kB
          Masatake Iwasaki
        2. HDFS-15048-branch-2.10.002.patch
          0.7 kB
          Sean Chow

        Issue Links

          Activity

            People

              iwasakims Masatake Iwasaki
              tasanuma Takanobu Asanuma
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: