You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/07/30 18:38:29 UTC
[hadoop] branch branch-2.9 updated: HDFS-14464. Remove unnecessary
log message from DFSInputStream. Contributed by Chao Sun.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2.9 by this push:
new 8c63408 HDFS-14464. Remove unnecessary log message from DFSInputStream. Contributed by Chao Sun.
8c63408 is described below
commit 8c6340841526eb5e2f80c7081646597358ece965
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Tue Jul 30 11:36:56 2019 -0700
HDFS-14464. Remove unnecessary log message from DFSInputStream. Contributed by Chao Sun.
(cherry picked from commit 3941b3c708f0c0ebae6a57752e3b1a820a819aa4)
---
.../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