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

Fix the Findbugwaring FSNamesystem#renameTo(String, String, boolean) in branch-2

    XMLWordPrintableJSON

Details

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

    Description

      Link : https://builds.apache.org/job/PreCommit-HDFS-Build/16972/artifact/patchprocess/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html#Warnings_CORRECTNESS

      Nullcheck of ret at line 2696 of value previously dereferenced in org.apache.hadoop.hdfs.server.namenode.FSNamesystem.renameTo(String, String, boolean)
      Bug type RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE (click for details) 
      In class org.apache.hadoop.hdfs.server.namenode.FSNamesystem
      In method org.apache.hadoop.hdfs.server.namenode.FSNamesystem.renameTo(String, String, boolean)
      Value loaded from ret
      Return value of org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameToInt(FSDirectory, String, String, boolean) of type org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp$RenameResult
      At FSNamesystem.java:[line 2696]
      Redundant null check at FSNamesystem.java:[line 2700]
      
      

      Attachments

        1. HDFS-10945-branch-2.patch
          0.9 kB
          Brahma Reddy Battula

        Activity

          People

            brahmareddy Brahma Reddy Battula
            brahmareddy Brahma Reddy Battula
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: