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

Remove duplicate or unused variable in appendFile()

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None
    • None
    • 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

        1. HDFS-10841.patch
          1 kB
          Kihwal Lee

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment