Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-8550

Erasure Coding: Fix FindBugs Multithreaded correctness Warning

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7285
    • None
    • None
    • Reviewed

    Description

      Please find the findbug warnings report

      1)

      Bug type IS2_INCONSISTENT_SYNC (click for details) 
      In class org.apache.hadoop.hdfs.DFSStripedInputStream
      Field org.apache.hadoop.hdfs.DFSStripedInputStream.curStripeBuf
      Synchronized 90% of the time
      Unsynchronized access at DFSStripedInputStream.java:[line 829]
      Synchronized access at DFSStripedInputStream.java:[line 183]
      Synchronized access at DFSStripedInputStream.java:[line 186]
      Synchronized access at DFSStripedInputStream.java:[line 184]
      Synchronized access at DFSStripedInputStream.java:[line 382]
      Synchronized access at DFSStripedInputStream.java:[line 460]
      Synchronized access at DFSStripedInputStream.java:[line 461]
      Synchronized access at DFSStripedInputStream.java:[line 461]
      Synchronized access at DFSStripedInputStream.java:[line 285]
      Synchronized access at DFSStripedInputStream.java:[line 297]
      Synchronized access at DFSStripedInputStream.java:[line 298]
      

      2)

      Unread field: org.apache.hadoop.hdfs.DFSStripedInputStream$BlockReaderInfo.targetBlock
      Bug type URF_UNREAD_FIELD (click for details) 
      In class org.apache.hadoop.hdfs.DFSStripedInputStream$BlockReaderInfo
      Field org.apache.hadoop.hdfs.DFSStripedInputStream$BlockReaderInfo.targetBlock
      At DFSStripedInputStream.java:[line 126]
      

      3)

      Unchecked/unconfirmed cast from org.apache.hadoop.hdfs.protocol.LocatedBlock to org.apache.hadoop.hdfs.protocol.LocatedStripedBlock in org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.setBlockToken(LocatedBlock, BlockTokenIdentifier$AccessMode)
      Bug type BC_UNCONFIRMED_CAST (click for details) 
      In class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager
      In method org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.setBlockToken(LocatedBlock, BlockTokenIdentifier$AccessMode)
      Actual type org.apache.hadoop.hdfs.protocol.LocatedBlock
      Expected org.apache.hadoop.hdfs.protocol.LocatedStripedBlock
      Value loaded from b
      At BlockManager.java:[line 974]
      

      4)

      Result of integer multiplication cast to long in org.apache.hadoop.hdfs.util.StripedBlockUtil.divideOneStripe(ErasureCodingPolicy, int, LocatedStripedBlock, long, long, ByteBuffer)
      Bug type ICAST_INTEGER_MULTIPLY_CAST_TO_LONG (click for details) 
      In class org.apache.hadoop.hdfs.util.StripedBlockUtil
      In method org.apache.hadoop.hdfs.util.StripedBlockUtil.divideOneStripe(ErasureCodingPolicy, int, LocatedStripedBlock, long, long, ByteBuffer)
      At StripedBlockUtil.java:[line 375]
      

      Attachments

        1. HDFS-8550-HDFS-7285-00.patch
          4 kB
          Rakesh Radhakrishnan
        2. HDFS-8550-HDFS-7285-01.patch
          4 kB
          Rakesh Radhakrishnan
        3. HDFS-8550-HDFS-7285-02.patch
          4 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: