hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7399) Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock()
Date Mon, 17 Nov 2014 05:15:33 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vinayakumar B updated HDFS-7399:
--------------------------------
    Attachment: HDFS-7399-001.patch

Thanks [~tedyu] for reporting.
Since this is causing findbugs test failed in all recent jenkins runs, I am going ahead and
submitting patch.

> Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock()
> --------------------------------------------------------------------------
>
>                 Key: HDFS-7399
>                 URL: https://issues.apache.org/jira/browse/HDFS-7399
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: HDFS-7399-001.patch
>
>
> {code}
>     long getLastByteOffsetBlock() {
>       return offsetInBlock + dataPos - dataStart;
> {code}
> Access to fields of Packet.this should be protected by synchronization as done in other
methods such as writeTo().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message