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

Fix DataNode.recoverBlock findbugs warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • datanode
    • None
    • Reviewed

    Description

      HDFS-2686 introduced the following findbugs warning:

      Call to equals() comparing different types in org.apache.hadoop.hdfs.server.datanode.DataNode.recoverBlock(BlockRecoveryCommand$RecoveringBlock)
      

      Both are using DatanodeID#equals but it's a different method because DNR#equals overrides equals for some reason (doesn't change behavior).

      Attachments

        1. hdfs-3837.txt
          0.8 kB
          Eli Collins
        2. hdfs-3837.txt
          7 kB
          Eli Collins
        3. hdfs-3837.txt
          4 kB
          Eli Collins
        4. hdfs-3837.txt
          4 kB
          Eli Collins
        5. hdfs-3837.txt
          0.8 kB
          Eli Collins

        Issue Links

          Activity

            People

              eli Eli Collins
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: