hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh R (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8386) Improve synchronization of 'streamer' reference in DFSOutputStream - accessed inconsistently with respect to synchronization
Date Wed, 13 May 2015 07:19:59 GMT

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

Rakesh R commented on HDFS-8386:
--------------------------------

The patch is just a simple refactor by getting the {{streamer}} object reference through {{synchronized
 getStreamer()}} function call instead of directly using it.

> Improve synchronization of 'streamer' reference in DFSOutputStream - accessed inconsistently
with respect to synchronization
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8386
>                 URL: https://issues.apache.org/jira/browse/HDFS-8386
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>         Attachments: HDFS-8386-00.patch
>
>
> Presently {{DFSOutputStream#streamer}} object reference is accessed inconsistently with
respect to synchronization. It would be good to improve this part. This has been noticed when
implementing the erasure coding feature.
> Please refer the related [discussion thread|https://issues.apache.org/jira/browse/HDFS-8294?focusedCommentId=14541411&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14541411]
in the jira HDFS-8294 for more details.



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

Mime
View raw message