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

Remove duplicate or unused variable in appendFile()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      A new findbugs warning was reported (See HDFS-10745). branch-2.8 might have the same problem.

      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]
      

        Attachments

          Activity

            People

            • Assignee:
              kihwal Kihwal Lee
              Reporter:
              kihwal Kihwal Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: