From ca1208825390b4121cc2fdaacad258b28ac26f3d Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Thu, 9 Apr 2015 10:50:44 -0700 Subject: [PATCH] HDFS-8099. Change "DFSInputStream has been closed already" message to debug log level (Charles Lamb via Colin P. McCabe) (cherry picked from commit 30acb7372ab97adf9bc86ead529c96cfe36e2396) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.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 132daa92f93..c38e0ed1d37 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -91,6 +91,9 @@ Release 2.8.0 - UNRELEASED HDFS-8101. DFSClient use of non-constant DFSConfigKeys pulls in WebHDFS classes at runtime. (Sean Busbey via atm) + HDFS-8099. Change "DFSInputStream has been closed already" message to + debug log level (Charles Lamb via Colin P. McCabe) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java index a9f274683c7..41b9d5039b4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java @@ -666,7 +666,7 @@ implements ByteBufferReadable, CanSetDropBehind, CanSetReadahead, @Override public synchronized void close() throws IOException { if (!closed.compareAndSet(false, true)) { - DFSClient.LOG.warn("DFSInputStream has been closed already"); + DFSClient.LOG.debug("DFSInputStream has been closed already"); return; } dfsClient.checkOpen();