[
https://issues.apache.org/jira/browse/HDFS-7661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035134#comment-15035134
]
Tsz Wo Nicholas Sze commented on HDFS-7661:
-------------------------------------------
> My proposal is we might could define a mark flag like GS for a stripe ...
The data length could be used as the flag. Parities correspond to data length.
We may store the data length along with a party for being written blocks.
> ... the visible length stored in NN ...
For a being file, the visible length is not stored in NN unless hsync is called
with UPDATE_LENGTH.
> ... Could you give clue key points which you think I should pay more
> attention to?
You may start with DFSStripedInputStream.StripeReader.readStripe(). I think we
don't need to change NN for implementing hflush/hsync. We may need to change
DN to support over writing parities.
> Support read when a EC file is being written
> --------------------------------------------
>
> Key: HDFS-7661
> URL: https://issues.apache.org/jira/browse/HDFS-7661
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Tsz Wo Nicholas Sze
> Assignee: GAO Rui
> Attachments: EC-file-flush-and-sync-steps-plan-2015-12-01.png,
> HDFS-7661-unitTest-wip-trunk.patch
>
>
> We also need to support hflush/hsync and visible length.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)