HBASE-14815 TestMobExportSnapshot.testExportFailure timeout occasionally (Heng Chen)

This commit is contained in:
stack 2015-11-18 09:05:50 -08:00
parent 5ebd7660a9
commit b2187c31ab
1 changed files with 3 additions and 1 deletions

View File

@ -344,7 +344,9 @@ public class TestExportSnapshot {
Configuration conf = new Configuration(TEST_UTIL.getConfiguration());
conf.setBoolean(ExportSnapshot.CONF_TEST_FAILURE, true);
conf.setBoolean(ExportSnapshot.CONF_TEST_RETRY, retry);
if (!retry) {
conf.setInt("mapreduce.map.maxattempts", 3);
}
// Export Snapshot
Path sourceDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();
int res = ExportSnapshot.innerMain(conf, new String[] {