[ 
https://issues.apache.org/jira/browse/HDFS-3910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eli Collins updated HDFS-3910:
------------------------------

    Attachment: hdfs-3910.txt

Patch attached.

- Updates waitReplication so that, like other DFSTestUtil wait methods, it 
throws TimeoutException after a fixed number of attempts and doesn't swallow 
InterruptedException  
- Bumps the waitReplication sleep to 1s since we shouldn't have to sleep again 
after the first one
- Modified the various callers (MR uses DFSTestUtil)
                
> DFSTestUtil#waitReplication should timeout
> ------------------------------------------
>
>                 Key: HDFS-3910
>                 URL: https://issues.apache.org/jira/browse/HDFS-3910
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>         Attachments: hdfs-3910.txt
>
>
> DFSTestUtil#waitReplication never times out so test execution fails only when 
> the mvn test executor times out. This leaves a stray test process around, an 
> example is HDFS-3902. Let's make waitReplication do something like bail after 
> it has checked block locations 10 times for one file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to