hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-12949) Fix findbugs warning in ImageWriter.java
Date Thu, 21 Dec 2017 01:07:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-12949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Akira Ajisaka updated HDFS-12949:
---------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 3.1.0
           Status: Resolved  (was: Patch Available)

Committed this to trunk. Thanks [~chris.douglas] for the review.

> Fix findbugs warning in ImageWriter.java
> ----------------------------------------
>
>                 Key: HDFS-12949
>                 URL: https://issues.apache.org/jira/browse/HDFS-12949
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>             Fix For: 3.1.0
>
>         Attachments: HDFS-12949.001.patch
>
>
> There are 1 findbugs warning in hadoop-fs2img module.
> {noformat}
> 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}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message