From 7eddecd357014d4793df4bf2e5d987add02289f5 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 12 May 2016 18:59:56 +0100 Subject: [PATCH] MAPREDUCE-6639 Process hangs in LocatedFileStatusFetcher if FileSystem.get throws. Ryan Blue via stevel --- .../org/apache/hadoop/mapred/LocatedFileStatusFetcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java index a039bc9748..1b1025e9da 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java @@ -175,7 +175,7 @@ private void registerInvalidInputError(List errors) { private void registerError(Throwable t) { lock.lock(); try { - if (unknownError != null) { + if (unknownError == null) { unknownError = t; condition.signal(); } @@ -368,4 +368,4 @@ public void onFailure(Throwable t) { registerError(t); } } -} \ No newline at end of file +}