HDFS-11745. Increase HDFS test timeouts from 1 second to 10 seconds. Contributed by Eric Badger
(cherry picked from commit fab73748a1
)
This commit is contained in:
parent
48b5faa705
commit
0a4021387f
|
@ -749,7 +749,7 @@ public class TestRpcProgramNfs3 {
|
||||||
assertEquals("Incorrect COMMIT3Response:", null, response2);
|
assertEquals("Incorrect COMMIT3Response:", null, response2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testIdempotent() {
|
public void testIdempotent() {
|
||||||
Object[][] procedures = {
|
Object[][] procedures = {
|
||||||
{ Nfs3Constant.NFSPROC3.NULL, 1 },
|
{ Nfs3Constant.NFSPROC3.NULL, 1 },
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class TestSymlinkHdfsFileContext extends TestSymlinkHdfs {
|
||||||
wrapper = new FileContextTestWrapper(fc, "/tmp/TestSymlinkHdfsFileContext");
|
wrapper = new FileContextTestWrapper(fc, "/tmp/TestSymlinkHdfsFileContext");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
/** Test access a symlink using AbstractFileSystem */
|
/** Test access a symlink using AbstractFileSystem */
|
||||||
public void testAccessLinkFromAbstractFileSystem() throws IOException {
|
public void testAccessLinkFromAbstractFileSystem() throws IOException {
|
||||||
Path file = new Path(testBaseDir1(), "file");
|
Path file = new Path(testBaseDir1(), "file");
|
||||||
|
|
|
@ -35,13 +35,13 @@ public class TestSymlinkHdfsFileSystem extends TestSymlinkHdfs {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Ignore("FileSystem adds missing authority in absolute URIs")
|
@Ignore("FileSystem adds missing authority in absolute URIs")
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCreateWithPartQualPathFails() throws IOException {}
|
public void testCreateWithPartQualPathFails() throws IOException {}
|
||||||
|
|
||||||
@Ignore("FileSystem#create creates parent directories," +
|
@Ignore("FileSystem#create creates parent directories," +
|
||||||
" so dangling links to directories are created")
|
" so dangling links to directories are created")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCreateFileViaDanglingLinkParent() throws IOException {}
|
public void testCreateFileViaDanglingLinkParent() throws IOException {}
|
||||||
|
|
||||||
// Additional tests for DFS-only methods
|
// Additional tests for DFS-only methods
|
||||||
|
|
|
@ -861,7 +861,7 @@ public class TestDFSUtil {
|
||||||
DFSUtil.getSpnegoKeytabKey(conf, defaultKey));
|
DFSUtil.getSpnegoKeytabKey(conf, defaultKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testDurationToString() throws Exception {
|
public void testDurationToString() throws Exception {
|
||||||
assertEquals("000:00:00:00.000", DFSUtil.durationToString(0));
|
assertEquals("000:00:00:00.000", DFSUtil.durationToString(0));
|
||||||
assertEquals("001:01:01:01.000",
|
assertEquals("001:01:01:01.000",
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class TestNameNodeMetrics {
|
||||||
* Test that capacity metrics are exported and pass
|
* Test that capacity metrics are exported and pass
|
||||||
* basic sanity tests.
|
* basic sanity tests.
|
||||||
*/
|
*/
|
||||||
@Test (timeout = 1800)
|
@Test (timeout = 10000)
|
||||||
public void testCapacityMetrics() throws Exception {
|
public void testCapacityMetrics() throws Exception {
|
||||||
MetricsRecordBuilder rb = getMetrics(NS_METRICS);
|
MetricsRecordBuilder rb = getMetrics(NS_METRICS);
|
||||||
long capacityTotal = MetricsAsserts.getLongGauge("CapacityTotal", rb);
|
long capacityTotal = MetricsAsserts.getLongGauge("CapacityTotal", rb);
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class TestWebHdfsTokens {
|
||||||
verify(fs, never()).setDelegationToken((Token<?>)any(Token.class));
|
verify(fs, never()).setDelegationToken((Token<?>)any(Token.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testGetOpRequireAuth() {
|
public void testGetOpRequireAuth() {
|
||||||
for (HttpOpParam.Op op : GetOpParam.Op.values()) {
|
for (HttpOpParam.Op op : GetOpParam.Op.values()) {
|
||||||
boolean expect = (op == GetOpParam.Op.GETDELEGATIONTOKEN);
|
boolean expect = (op == GetOpParam.Op.GETDELEGATIONTOKEN);
|
||||||
|
@ -139,7 +139,7 @@ public class TestWebHdfsTokens {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testPutOpRequireAuth() {
|
public void testPutOpRequireAuth() {
|
||||||
for (HttpOpParam.Op op : PutOpParam.Op.values()) {
|
for (HttpOpParam.Op op : PutOpParam.Op.values()) {
|
||||||
boolean expect = (op == PutOpParam.Op.RENEWDELEGATIONTOKEN || op == PutOpParam.Op.CANCELDELEGATIONTOKEN);
|
boolean expect = (op == PutOpParam.Op.RENEWDELEGATIONTOKEN || op == PutOpParam.Op.CANCELDELEGATIONTOKEN);
|
||||||
|
@ -147,14 +147,14 @@ public class TestWebHdfsTokens {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testPostOpRequireAuth() {
|
public void testPostOpRequireAuth() {
|
||||||
for (HttpOpParam.Op op : PostOpParam.Op.values()) {
|
for (HttpOpParam.Op op : PostOpParam.Op.values()) {
|
||||||
assertFalse(op.getRequireAuth());
|
assertFalse(op.getRequireAuth());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testDeleteOpRequireAuth() {
|
public void testDeleteOpRequireAuth() {
|
||||||
for (HttpOpParam.Op op : DeleteOpParam.Op.values()) {
|
for (HttpOpParam.Op op : DeleteOpParam.Op.values()) {
|
||||||
assertFalse(op.getRequireAuth());
|
assertFalse(op.getRequireAuth());
|
||||||
|
|
Loading…
Reference in New Issue