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

This commit is contained in:
tedyu 2015-06-03 15:44:44 -07:00
parent e8914f26d2
commit 86d30e0bfe
1 changed files with 3 additions and 0 deletions

View File

@ -583,6 +583,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){