@Test
  public void testExportRetry() throws Exception {
    Path copyDir = TestExportSnapshot.getLocalDestinationDir(TEST_UTIL);
    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());
    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);
    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);
    conf.setInt("mapreduce.map.maxattempts", 3);
    TestExportSnapshot.testExportFileSystemState(conf, tableName, snapshotName, snapshotName,
      tableNumFiles, TEST_UTIL.getDefaultRootDirPath(), copyDir, true, false, null, true, false);
  }
Check that ExportSnapshot will succeed if something fails but the retry succeed.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshotAdjunct.java