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

Fix findbugs warning in ImageWriter.java

    XMLWordPrintableJSON

Details

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

    Description

      There are 1 findbugs warning in hadoop-fs2img module.

      OBL	new org.apache.hadoop.hdfs.server.namenode.ImageWriter(ImageWriter$Options) may fail to clean up java.io.OutputStream on checked exception
      Bug type OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE (click for details) 
      In class org.apache.hadoop.hdfs.server.namenode.ImageWriter
      In method new org.apache.hadoop.hdfs.server.namenode.ImageWriter(ImageWriter$Options)
      Reference type java.io.OutputStream
      1 instances of obligation remaining
      Obligation to clean up resource created at ImageWriter.java:[line 184] is not discharged
      Path continues at ImageWriter.java:[line 185]
      Path continues at ImageWriter.java:[line 186]
      Path continues at ImageWriter.java:[line 187]
      Path continues at ImageWriter.java:[line 188]
      Remaining obligations: {OutputStream x 1}
      

      Attachments

        1. HDFS-12949.001.patch
          0.7 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: