[
https://issues.apache.org/jira/browse/HDFS-9173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063516#comment-15063516
]
Tsz Wo Nicholas Sze commented on HDFS-9173:
-------------------------------------------
> getSafeLength already handles this case. It sorts all lengths and gets the
> "smallest length that covers at least 6 internal blocks". ...
It does not seem correct if we have hflush. Here is an example:
{code}
blk_0 blk_1 blk_2 blk_3 blk_4 blk_5 blk_6 blk_7 blk_8
64k 64k 64k 64k 4k 0k 64k 64k 64k
{code}
Suppose blk_4 and blk_5 are unavailable. The code will mistakenly consider
this as a full strip.
> Erasure Coding: Lease recovery for striped file
> -----------------------------------------------
>
> Key: HDFS-9173
> URL: https://issues.apache.org/jira/browse/HDFS-9173
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Walter Su
> Assignee: Walter Su
> Attachments: HDFS-9173.00.wip.patch, HDFS-9173.01.patch,
> HDFS-9173.02.step125.patch, HDFS-9173.03.patch, HDFS-9173.04.patch,
> HDFS-9173.05.patch, HDFS-9173.06.patch, HDFS-9173.07.patch,
> HDFS-9173.08.patch, HDFS-9173.09.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)