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

Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

          long getLastByteOffsetBlock() {
            return offsetInBlock + dataPos - dataStart;
      

      Access to fields of Packet.this should be protected by synchronization as done in other methods such as writeTo().

        Attachments

        1. HDFS-7399-001.patch
          1 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: