|
@@ -291,17 +291,17 @@ public class TestShortCircuitLocalRead {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testFileLocalReadNoChecksum() throws Exception {
|
|
|
doTestShortCircuitRead(true, 3*blockSize+100, 0);
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testFileLocalReadChecksum() throws Exception {
|
|
|
doTestShortCircuitRead(false, 3*blockSize+100, 0);
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testSmallFileLocalRead() throws Exception {
|
|
|
doTestShortCircuitRead(false, 13, 0);
|
|
|
doTestShortCircuitRead(false, 13, 5);
|
|
@@ -309,7 +309,7 @@ public class TestShortCircuitLocalRead {
|
|
|
doTestShortCircuitRead(true, 13, 5);
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testLocalReadLegacy() throws Exception {
|
|
|
doTestShortCircuitReadLegacy(true, 13, 0, getCurrentUser(),
|
|
|
getCurrentUser(), false);
|
|
@@ -320,18 +320,18 @@ public class TestShortCircuitLocalRead {
|
|
|
* to use short circuit. The test ensures reader falls back to non
|
|
|
* shortcircuit reads when shortcircuit is disallowed.
|
|
|
*/
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testLocalReadFallback() throws Exception {
|
|
|
doTestShortCircuitReadLegacy(true, 13, 0, getCurrentUser(), "notallowed", true);
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testReadFromAnOffset() throws Exception {
|
|
|
doTestShortCircuitRead(false, 3*blockSize+100, 777);
|
|
|
doTestShortCircuitRead(true, 3*blockSize+100, 777);
|
|
|
}
|
|
|
|
|
|
- @Test(timeout=10000)
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testLongFile() throws Exception {
|
|
|
doTestShortCircuitRead(false, 10*blockSize+100, 777);
|
|
|
doTestShortCircuitRead(true, 10*blockSize+100, 777);
|
|
@@ -578,6 +578,7 @@ public class TestShortCircuitLocalRead {
|
|
|
fs.delete(file1, false);
|
|
|
}
|
|
|
|
|
|
+ @Test(timeout=60000)
|
|
|
public void testReadWithRemoteBlockReader() throws IOException, InterruptedException {
|
|
|
doTestShortCircuitReadWithRemoteBlockReader(true, 3*blockSize+100, getCurrentUser(), 0, false);
|
|
|
}
|