[prev in list] [next in list] [prev in thread] [next in thread]
List: hadoop-commits
Subject: [hadoop] branch branch-2 updated: HDFS-14464. Remove unnecessary log message from DFSInputStream. Co
From: weichiu () apache ! org
Date: 2019-07-30 18:37:42
Message-ID: 156451186235.13476.11233144323475970484 () gitbox ! apache ! org
[Download RAW message or body]
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 3941b3c HDFS-14464. Remove unnecessary log message from DFSInputStream. \
Contributed by Chao Sun. 3941b3c is described below
commit 3941b3c708f0c0ebae6a57752e3b1a820a819aa4
Author: Wei-Chiu Chuang <weichiu@apache.org>
AuthorDate: Tue Jul 30 11:36:56 2019 -0700
HDFS-14464. Remove unnecessary log message from DFSInputStream. Contributed by \
Chao Sun.
---
.../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java \
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
index 51f21f5..5c2dfc4 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
@@ -852,9 +852,7 @@ public class DFSInputStream extends FSInputStream
updateReadStatistics(readStatistics, nRead, blockReader);
dfsClient.updateFileSystemReadStats(blockReader.getNetworkDistance(),
nRead);
- if (nRead == 0) {
- DFSClient.LOG.warn("zero");
- } else if (nRead > 0) {
+ if (nRead > 0) {
buf.position(buf.position() + nRead);
}
return nRead;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic