From 1f6258f535f114b88d9be038ffbcf23f7621dba3 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Fri, 24 Oct 2014 10:50:16 -0700 Subject: [PATCH] HDFS-7283. Bump DataNode OOM log from WARN to ERROR. Contributed by Stephen Chu. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/datanode/DataXceiverServer.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5c70021061f..f08112cddd0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -47,6 +47,9 @@ Release 2.7.0 - UNRELEASED HDFS-7223. Tracing span description of IPC client is too long (iwasakims via cmccabe) + HDFS-7283. Bump DataNode OOM log from WARN to ERROR. + (Stephen Chu via wheat9) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiverServer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiverServer.java index a1f766d6249..9bf95eb825d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiverServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiverServer.java @@ -161,7 +161,7 @@ class DataXceiverServer implements Runnable { // DataNode can run out of memory if there is too many transfers. // Log the event, Sleep for 30 seconds, other transfers may complete by // then. - LOG.warn("DataNode is out of memory. Will retry in 30 seconds.", ie); + LOG.error("DataNode is out of memory. Will retry in 30 seconds.", ie); try { Thread.sleep(30 * 1000); } catch (InterruptedException e) {