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

Fix findbug in DirectoryScanner

    XMLWordPrintableJSON

    Details

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

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

                Dates

                • Created:
                  Updated:
                  Resolved: