From af9de19cfd7f3ad0d2d075bf79efdcee46868ca1 Mon Sep 17 00:00:00 2001 From: Vinayakumar B Date: Wed, 3 Feb 2016 11:14:29 +0530 Subject: [PATCH] HDFS-9740. Use a reasonable limit in DFSTestUtil.waitForMetric() (Contributed by Chang Li) (cherry picked from commit eb2fb943fd97c191fd7c4f5333087a28ee5c87d8) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java (cherry picked from commit 6941e2ccbf6f4c7c8663a68c7a7c9ed59bb49fbf) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 8af384c0feb..2a6c0d7ca04 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -81,6 +81,9 @@ Release 2.7.3 - UNRELEASED HDFS-9406. FSImage may get corrupted after deleting snapshot. (Contributed by Jing Zhao, Stanislav Antic, Vinayakumar B, Yongjun Zhang) + HDFS-9740. Use a reasonable limit in DFSTestUtil.waitForMetric() + (Chang Li via vinayakumarb) + Release 2.7.2 - 2016-01-25 INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java index 0fbc6316b7b..d0dba9f6b20 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java @@ -1829,6 +1829,6 @@ public class DFSTestUtil { throw new UnhandledException("Test failed due to unexpected exception", e); } } - }, 1000, Integer.MAX_VALUE); + }, 1000, 60000); } }