HDFS-10701. TestDFSStripedOutputStreamWithFailure#testBlockTokenExpired occasionally fails. Contributed by SammiChen.
This commit is contained in:
parent
1a84c24b0c
commit
ef8cd5dc56
@ -260,8 +260,6 @@ public void testMultipleDatanodeFailureRandomLength() throws Exception {
|
||||
|
||||
@Test(timeout=240000)
|
||||
public void testBlockTokenExpired() throws Exception {
|
||||
// TODO: this is very flaky, re-enable it later. See HDFS-12417.
|
||||
assumeTrue("Test has been temporarily disabled. See HDFS-12417.", false);
|
||||
final int length = dataBlocks * (blockSize - cellSize);
|
||||
final HdfsConfiguration conf = newHdfsConfiguration();
|
||||
|
||||
@ -494,8 +492,8 @@ private void runTest(final int length, final int[] killPos,
|
||||
final BlockManager bm = nn.getNamesystem().getBlockManager();
|
||||
final BlockTokenSecretManager sm = bm.getBlockTokenSecretManager();
|
||||
|
||||
// set a short token lifetime (1 second)
|
||||
SecurityTestUtil.setBlockTokenLifetime(sm, 1000L);
|
||||
// set a short token lifetime (6 second)
|
||||
SecurityTestUtil.setBlockTokenLifetime(sm, 6000L);
|
||||
}
|
||||
|
||||
final AtomicInteger pos = new AtomicInteger();
|
||||
|
Loading…
Reference in New Issue
Block a user