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

Walter Su commented on HDFS-8769:
---------------------------------

Contiguous version has a test {{testTriggerBlockIdCollision()}}. The meaning of 
the test is to avoid collision when the id is occupied by legacy block (which 
has randomly generated id).

the randomly generated id could be negative.
So, could you add a test case that The id is occupied by contiguous file? You 
might have to hack {{BlockIdGenerator}} so that you could create a contiguous 
file with negative ID.

The 2 test cases in 00 patch looks good. Thanks, [~rakeshr]!

> Erasure Coding: unit test for SequentialBlockGroupIdGenerator
> -------------------------------------------------------------
>
>                 Key: HDFS-8769
>                 URL: https://issues.apache.org/jira/browse/HDFS-8769
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Walter Su
>            Assignee: Rakesh R
>         Attachments: HDFS-8769-HDFS-7285-00.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to