HDFS-3936. MiniDFSCluster shutdown races with BlocksMap usage. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1387255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-09-18 16:59:47 +00:00
parent c419b1385d
commit 7e3776ca6e
4 changed files with 6 additions and 4 deletions

View File

@ -242,6 +242,8 @@ Release 2.0.3-alpha - Unreleased
HDFS-3924. Multi-byte id in HdfsVolumeId. (Andrew Wang via atm)
HDFS-3936. MiniDFSCluster shutdown races with BlocksMap usage. (eli)
Release 2.0.2-alpha - 2012-09-07
INCOMPATIBLE CHANGES

View File

@ -94,7 +94,7 @@ private static int computeCapacity() {
}
void close() {
blocks = null;
// Empty blocks once GSet#clear is implemented (HDFS-3940)
}
BlockCollection getBlockCollection(Block b) {

View File

@ -830,7 +830,7 @@ public void testRetryOnChecksumFailure() throws Exception {
}
/** Test client retry with namenode restarting. */
@Test
@Test(timeout=300000)
public void testNamenodeRestart() throws Exception {
namenodeRestartTest(new Configuration(), false);
}

View File

@ -80,7 +80,7 @@ String toMpsString(final long nBytes, final long now) {
}
}
@Test
@Test(timeout=300000)
public void testLargeFile() throws Exception {
largeFileTest(200L << 20); //200MB file length
}
@ -202,7 +202,7 @@ static void verifyPread(FileSystem fs, Path p, long offset, long length,
}
/** Test client retry with namenode restarting. */
@Test
@Test(timeout=300000)
public void testNamenodeRestart() throws Exception {
((Log4JLogger)NamenodeWebHdfsMethods.LOG).getLogger().setLevel(Level.ALL);
final Configuration conf = WebHdfsTestUtil.createConf();