hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kihwal Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10841) Remove duplicate or unused variable in appendFile()
Date Tue, 06 Sep 2016 15:41:20 GMT

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

Kihwal Lee updated HDFS-10841:
------------------------------
    Attachment: HDFS-10841.patch

Even in trunk, {{src}} is only used for a logging statement in the method. We can get rid
of it.

> Remove duplicate or unused variable in appendFile()
> ---------------------------------------------------
>
>                 Key: HDFS-10841
>                 URL: https://issues.apache.org/jira/browse/HDFS-10841
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Kihwal Lee
>            Assignee: Kihwal Lee
>         Attachments: HDFS-10841.patch
>
>
> A new findbugs warning was reported (See HDFS-10745). branch-2.8 might have the same
problem.
> {noformat}
> Code	Warning
> DLS	Dead store to src in org.apache.hadoop.hdfs.server.namenode.FSDirAppendOp
>   .appendFile(FSNamesystem, String, FSPermissionChecker, String, String, boolean, boolean)
> Bug type DLS_DEAD_LOCAL_STORE (click for details) 
> In class org.apache.hadoop.hdfs.server.namenode.FSDirAppendOp
> In method org.apache.hadoop.hdfs.server.namenode.FSDirAppendOp
>   .appendFile(FSNamesystem, String, FSPermissionChecker, String, String, boolean, boolean)
> Local variable named src
> At FSDirAppendOp.java:[line 92]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
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