From 28a848412c8239dfc6bd3e42dbbfe711e19bc8eb Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Thu, 8 Aug 2019 13:46:31 -0700 Subject: [PATCH] HDFS-14701. Change Log Level to warn in SlotReleaser. Contributed by Lisheng Sun. --- .../hadoop/hdfs/shortcircuit/ShortCircuitCache.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java index 5acac2fa024..d3eb3ac0da8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java @@ -202,10 +202,11 @@ public class ShortCircuitCache implements Closeable { LOG.trace("{}: released {}", this, slot); success = true; } catch (IOException e) { - LOG.error(ShortCircuitCache.this + ": failed to release " + - "short-circuit shared memory slot " + slot + " by sending " + - "ReleaseShortCircuitAccessRequestProto to " + path + - ". Closing shared memory segment.", e); + LOG.warn(ShortCircuitCache.this + ": failed to release " + + "short-circuit shared memory slot " + slot + " by sending " + + "ReleaseShortCircuitAccessRequestProto to " + path + + ". Closing shared memory segment. " + + "DataNode may have been stopped or restarted", e); } finally { if (success) { shmManager.freeSlot(slot);