Thread.sleep(100);
if (System.currentTimeMillis() - startChecking > 30000) {
fail("Timed out waiting for excess replicas to be deleted");
}
} while (num.excessReplicas() != 0);
}
private void addToExcludeFile(Configuration conf, DatanodeDescriptor[] dns) throws Exception {
String excludeFN = conf.get("dfs.hosts.exclude", "");
assertTrue(excludeFN.equals(HOST_FILE_PATH));