[ https://issues.apache.org/jira/browse/HDFS-9173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960115#comment-14960115 ]
Walter Su commented on HDFS-9173: --------------------------------- bq. #2. about {{syncBlockFinalized}}, {{syncBlockUnfinalized}}. Unfortunately, The logic isn't quite the same between contiguous and striped. For example, {noformat} blk_0 blk_1 blk_2 blk_3 blk_4 blk_5 blk_6 blk_7 blk_8 64k 64k 64k 64k 64k 64k 64k 64k 64k 64k ___ ___ ___ ___ 64k 64k 64k 64k {noformat} blk_0, blk5~8 are finalized, blk1~4 are RBW. In this case, the last cell of blk_5 is garbage, should be truncated. Because the data isn't sequential in last stripe and can't decode. So I have to keep blk_0, truncate blk_5, and re-encode blk_6~8 (I'm talking about last cells). (It's done in step 4) So I don't care too much whether it's finalized or not. For contiguous blocks, If it finds a finalized, it keeps the finalized. > 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 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)