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 2021/06/17 03:40:05 UTC

[hadoop] branch branch-3.3 updated: HDFS-16074. Remove an expensive debug string concatenation (#3107)

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 577b96e  HDFS-16074. Remove an expensive debug string concatenation (#3107)
577b96e is described below

commit 577b96ef42f9927e82b33d4a672b40fd69b27a63
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Wed Jun 16 20:37:56 2021 -0700

    HDFS-16074. Remove an expensive debug string concatenation (#3107)
    
    Reviewed-by: Ayush Saxena <ay...@apache.org>
    Reviewed-by: Akira Ajisaka <aa...@apache.org>
    Reviewed-by: Inigo Goiri <in...@apache.org>
    Reviewed-by: Hui Fei <fe...@apache.org>
    Reviewed-by: Viraj Jasani <vj...@apache.org>
    Reviewed-by: litao <to...@gmail.com>
    (cherry picked from commit 1ad674e5489e6080f21c308673ecc73a54ba3752)
---
 .../src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
index 9003e51..e07b247 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
@@ -480,9 +480,10 @@ public class DFSOutputStream extends FSOutputSummer
       currentPacket = createPacket(packetSize, chunksPerPacket, getStreamer()
           .getBytesCurBlock(), getStreamer().getAndIncCurrentSeqno(), false);
       DFSClient.LOG.debug("WriteChunk allocating new packet seqno={},"
-              + " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={}",
+              + " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={},"
+              + " output stream={}",
           currentPacket.getSeqno(), src, packetSize, chunksPerPacket,
-          getStreamer().getBytesCurBlock() + ", " + this);
+          getStreamer().getBytesCurBlock(), this);
     }
   }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org