MAPREDUCE-6639 Process hangs in LocatedFileStatusFetcher if FileSystem.get 
throws. Ryan Blue via stevel


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7eddecd3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7eddecd3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7eddecd3

Branch: refs/heads/trunk
Commit: 7eddecd357014d4793df4bf2e5d987add02289f5
Parents: 0bbe01f
Author: Steve Loughran <ste...@apache.org>
Authored: Thu May 12 18:59:56 2016 +0100
Committer: Steve Loughran <ste...@apache.org>
Committed: Thu May 12 19:00:32 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/7eddecd3/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/LocatedFileStatusFetcher.java
----------------------------------------------------------------------
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 a039bc9..1b1025e 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 @@ public class LocatedFileStatusFetcher {
   private void registerError(Throwable t) {
     lock.lock();
     try {
-      if (unknownError != null) {
+      if (unknownError == null) {
         unknownError = t;
         condition.signal();
       }
@@ -368,4 +368,4 @@ public class LocatedFileStatusFetcher {
       registerError(t);
     }
   }
-}
\ No newline at end of file
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to