|
@@ -88,6 +88,8 @@ public class TestCrcCorruption {
|
|
|
@Test(timeout=50000)
|
|
|
public void testCorruptionDuringWrt() throws Exception {
|
|
|
Configuration conf = new HdfsConfiguration();
|
|
|
+ // Set short retry timeouts so this test runs faster
|
|
|
+ conf.setInt(DFSConfigKeys.DFS_CLIENT_RETRY_WINDOW_BASE, 10);
|
|
|
MiniDFSCluster cluster = null;
|
|
|
|
|
|
try {
|
|
@@ -152,7 +154,8 @@ public class TestCrcCorruption {
|
|
|
int numDataNodes = 2;
|
|
|
short replFactor = 2;
|
|
|
Random random = new Random();
|
|
|
-
|
|
|
+ // Set short retry timeouts so this test runs faster
|
|
|
+ conf.setInt(DFSConfigKeys.DFS_CLIENT_RETRY_WINDOW_BASE, 10);
|
|
|
try {
|
|
|
cluster = new MiniDFSCluster.Builder(conf).numDataNodes(numDataNodes).build();
|
|
|
cluster.waitActive();
|
|
@@ -334,6 +337,8 @@ public class TestCrcCorruption {
|
|
|
short replFactor = (short)numDataNodes;
|
|
|
Configuration conf = new Configuration();
|
|
|
conf.setInt(DFSConfigKeys.DFS_REPLICATION_KEY, numDataNodes);
|
|
|
+ // Set short retry timeouts so this test runs faster
|
|
|
+ conf.setInt(DFSConfigKeys.DFS_CLIENT_RETRY_WINDOW_BASE, 10);
|
|
|
MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(numDataNodes).build();
|
|
|
|
|
|
try {
|