From b245adb16385569be44637e30e8b6ff2cf3aad8e Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Tue, 16 Oct 2012 16:29:21 +0000 Subject: [PATCH] HDFS-3985. Add timeouts to TestMulitipleNNDataBlockScanner. Contributed by Todd Lipcon git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1398874 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../datanode/TestMultipleNNDataBlockScanner.java | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index f32e0cad656..83a1386ec72 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -452,6 +452,8 @@ Release 2.0.3-alpha - Unreleased HDFS-4058. DirectoryScanner may fail with IOOB if the directory scanning threads return out of volume order. (eli) + HDFS-3985. Add timeouts to TestMulitipleNNDataBlockScanner. (todd via eli) + Release 2.0.2-alpha - 2012-09-07 INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestMultipleNNDataBlockScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestMultipleNNDataBlockScanner.java index 67964e1841c..7a9b67fd39b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestMultipleNNDataBlockScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestMultipleNNDataBlockScanner.java @@ -74,7 +74,7 @@ public class TestMultipleNNDataBlockScanner { } } - @Test + @Test(timeout=120000) public void testDataBlockScanner() throws IOException, InterruptedException { setUp(); try { @@ -97,7 +97,7 @@ public class TestMultipleNNDataBlockScanner { } } - @Test + @Test(timeout=120000) public void testBlockScannerAfterRefresh() throws IOException, InterruptedException { setUp(); @@ -149,7 +149,7 @@ public class TestMultipleNNDataBlockScanner { } } - @Test + @Test(timeout=120000) public void testBlockScannerAfterRestart() throws IOException, InterruptedException { setUp(); @@ -176,7 +176,7 @@ public class TestMultipleNNDataBlockScanner { } } - @Test + @Test(timeout=120000) public void test2NNBlockRescanInterval() throws IOException { ((Log4JLogger)BlockPoolSliceScanner.LOG).getLogger().setLevel(Level.ALL); Configuration conf = new HdfsConfiguration(); @@ -206,7 +206,7 @@ public class TestMultipleNNDataBlockScanner { * * @throws Exception */ - @Test + @Test(timeout=120000) public void testBlockRescanInterval() throws IOException { ((Log4JLogger)BlockPoolSliceScanner.LOG).getLogger().setLevel(Level.ALL); Configuration conf = new HdfsConfiguration();