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:39:17 UTC

[hadoop] branch branch-3.2 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.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


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

commit 11034f24886ee440d8ecc7c191457b36d6d21785
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 e977054..ce37e59 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
@@ -473,9 +473,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