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

GAO Rui commented on HDFS-9403:
-------------------------------

It is marked as *Deprecated* in the Junit 4.12 document: 
http://junit.org/apidocs/org/junit/rules/Timeout.html#seconds(long

{code}

Timeout

@Deprecated
public Timeout(int millis)
Deprecated. 
Create a Timeout instance with the timeout specified in milliseconds.
This constructor is deprecated.

Instead use Timeout(long, java.util.concurrent.TimeUnit), millis(long), or 
seconds(long).

Parameters:
millis - the maximum time in milliseconds to allow the test to run before it 
should timeout

{code}

> Erasure coding: some EC tests are missing timeout
> -------------------------------------------------
>
>                 Key: HDFS-9403
>                 URL: https://issues.apache.org/jira/browse/HDFS-9403
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: erasure-coding, test
>    Affects Versions: 3.0.0
>            Reporter: Zhe Zhang
>            Assignee: GAO Rui
>            Priority: Minor
>         Attachments: HDFS-9403-origin-trunk.00.patch, 
> HDFS-9403-origin-trunk.01.patch
>
>
> EC data writing pipeline is still being worked on, and bugs could introduce 
> program hang. We should add a timeout for all tests involving striped 
> writing. I see at least the following:
> * {{TestErasureCodingPolicies}}
> * {{TestFileStatusWithECPolicy}}
> * {{TestDFSStripedOutputStream}}



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

Reply via email to