diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d8e0f24355d..44a3131c970 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -119,6 +119,8 @@ Release 2.0.3-alpha - Unreleased HDFS-3985. Add timeouts to TestMulitipleNNDataBlockScanner. (todd via eli) + HDFS-4061. TestBalancer and TestUnderReplicatedBlocks need timeouts. (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/balancer/TestBalancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java index 49fbd1001ea..11ea74a6d61 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java @@ -372,7 +372,7 @@ public class TestBalancer { * Test parse method in Balancer#Cli class with threshold value out of * boundaries. */ - @Test + @Test(timeout=100000) public void testBalancerCliParseWithThresholdOutOfBoundaries() { String parameters[] = new String[] { "-threshold", "0" }; String reason = "IllegalArgumentException is expected when threshold value" @@ -394,7 +394,7 @@ public class TestBalancer { /** Test a cluster with even distribution, * then a new empty node is added to the cluster*/ - @Test + @Test(timeout=100000) public void testBalancer0() throws Exception { testBalancer0Internal(new HdfsConfiguration()); } @@ -406,7 +406,7 @@ public class TestBalancer { } /** Test unevenly distributed cluster */ - @Test + @Test(timeout=100000) public void testBalancer1() throws Exception { testBalancer1Internal(new HdfsConfiguration()); } @@ -419,7 +419,7 @@ public class TestBalancer { new String[] {RACK0, RACK1}); } - @Test + @Test(timeout=100000) public void testBalancer2() throws Exception { testBalancer2Internal(new HdfsConfiguration()); } diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestUnderReplicatedBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestUnderReplicatedBlocks.java index 979ab888f03..2a4f44ea04d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestUnderReplicatedBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestUnderReplicatedBlocks.java @@ -30,7 +30,7 @@ import org.apache.hadoop.hdfs.protocol.ExtendedBlock; import org.junit.Test; public class TestUnderReplicatedBlocks { - @Test + @Test(timeout=300000) // 5 min timeout public void testSetrepIncWithUnderReplicatedBlocks() throws Exception { Configuration conf = new HdfsConfiguration(); final short REPLICATION_FACTOR = 2;