hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7399) Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock()
Date Tue, 18 Nov 2014 11:52:42 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216109#comment-14216109
] 

Hudson commented on HDFS-7399:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #747 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/747/])
HDFS-7399. Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock() (Contributed
by Vinayakumar B) (vinayakumarb: rev 6783d17fcf5b25165767888f756a6b7802ab1371)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java


> 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
>            Assignee: Vinayakumar B
>            Priority: Minor
>             Fix For: 2.7.0
>
>         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