Brandon Li created HDFS-5172:
--------------------------------

             Summary: Handle race condition for writes
                 Key: HDFS-5172
                 URL: https://issues.apache.org/jira/browse/HDFS-5172
             Project: Hadoop HDFS
          Issue Type: Sub-task
            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to