From d9c4f1129c0814ab61fce6ea8baf4b272f84c252 Mon Sep 17 00:00:00 2001 From: Isa Hekmatizadeh Date: Tue, 24 Mar 2020 17:47:22 +0000 Subject: [PATCH] HDFS-15219. DFS Client will stuck when ResponseProcessor.run throw Error (#1902). Contributed by zhengchenyu. --- .../src/main/java/org/apache/hadoop/hdfs/DataStreamer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java index f65efdef94..1344c3b3a6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java @@ -1184,7 +1184,7 @@ public void run() { one.releaseBuffer(byteArrayManager); } - } catch (Exception e) { + } catch (Throwable e) { if (!responderClosed) { lastException.set(e); errorState.setInternalError();