From 772cacdbdd7d85519161a18de05a4c13e2c8b4ef Mon Sep 17 00:00:00 2001 From: pingsutw Date: Sun, 14 Jul 2019 00:27:46 +0800 Subject: [PATCH] MAPREDUCE-7076. TestNNBench#testNNBenchCreateReadAndDelete failing in our internal build This closes #1089 Signed-off-by: Akira Ajisaka (cherry picked from commit ee87e9a42e4ff1f27a6f1e5b7c7de97f8989d9b2) --- .../src/test/java/org/apache/hadoop/hdfs/NNBench.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java index 2346c3c472c..e339d485dbe 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java @@ -668,7 +668,7 @@ public class NNBench extends Configured implements Tool { long startTime = getConf().getLong("test.nnbench.starttime", 0l); long currentTime = System.currentTimeMillis(); long sleepTime = startTime - currentTime; - boolean retVal = false; + boolean retVal = true; // If the sleep time is greater than 0, then sleep and return if (sleepTime > 0) {