You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Brandon Li (JIRA)" <ji...@apache.org> on 2013/11/08 20:36:18 UTC

[jira] [Resolved] (HDFS-5172) Handle race condition for writes

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

Brandon Li resolved HDFS-5172.
------------------------------

    Resolution: Fixed

This issue is fixed along with the fix to HDFS-5364. Solve it as a dup.

> Handle race condition for writes
> --------------------------------
>
>                 Key: HDFS-5172
>                 URL: https://issues.apache.org/jira/browse/HDFS-5172
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: nfs
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>
> When an unstable write arrives, the following happens: 
> 1. retrieves the OpenFileCtx
> 2. create asyn task to write it to hdfs
> The race is that, the OpenFileCtx could be closed by the StreamMonitor. Then step 2 will simply return an error to the client.
> This is OK before streaming is supported. To support data streaming, the file needs to be reopened.



--
This message was sent by Atlassian JIRA
(v6.1#6144)