[ 
https://issues.apache.org/jira/browse/HDFS-10854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17802536#comment-17802536
 ] 

Shilun Fan commented on HDFS-10854:
-----------------------------------

Bulk update: moved all 3.4.0 non-blocker issues, please move back if it is a 
blocker. Retarget 3.5.0.

> Remove createStripedFile and addBlockToFile by creating real EC files
> ---------------------------------------------------------------------
>
>                 Key: HDFS-10854
>                 URL: https://issues.apache.org/jira/browse/HDFS-10854
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: erasure-coding, test
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Zhe Zhang
>            Assignee: Sammi Chen
>            Priority: Major
>
> {{DFSTestUtil#createStripedFile}} and {{addBlockToFile}} were developed 
> before we completed EC client. They were used to test the {{NameNode}} EC 
> logic when the client was unable to really create/read/write EC files.
> They are causing confusions in other issues about {{NameNode}}. For example, 
> in one of the patches under {{HDFS-10301}}, 
> {{testProcessOverReplicatedAndMissingStripedBlock}} fails because in the test 
> we fake a block report from a DN, with a randomly generated storage ID. The 
> DN itself is never aware of that storage. This is not possible in a real 
> production environment.
> {code}
>       DatanodeStorage storage = new 
> DatanodeStorage(UUID.randomUUID().toString());
>       StorageReceivedDeletedBlocks[] reports = DFSTestUtil
>           .makeReportForReceivedBlock(block,
>               ReceivedDeletedBlockInfo.BlockStatus.RECEIVING_BLOCK, storage);
>       for (StorageReceivedDeletedBlocks report : reports) {
>         ns.processIncrementalBlockReport(dn.getDatanodeId(), report);
>       }
> {code}
> Now that we have a fully functional EC client, we should remove the old 
> testing logic and use similar logic as non-EC tests (creating real files and 
> emulate blocks missing / being corrupt).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to