HBASE-13831 TestHBaseFsck#testParallelHbck is flaky against hadoop 2.6+ (Stephen Jiang)

This commit is contained in:
tedyu 2015-06-03 15:46:22 -07:00
parent fad545652f
commit e8e5a9f639
1 changed files with 3 additions and 0 deletions

View File

@ -575,6 +575,9 @@ public class TestHBaseFsck {
public HBaseFsck call(){
Configuration c = new Configuration(conf);
c.setInt("hbase.hbck.lockfile.attempts", 1);
// HBASE-13574 found that in HADOOP-2.6 and later, the create file would internally retry.
// To avoid flakiness of the test, set low max wait time.
c.setInt("hbase.hbck.lockfile.maxwaittime", 3);
try{
return doFsck(c, false);
} catch(Exception e){