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

sodonnel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 62d982ff2d9 HDDS-17032. Avoid building the Preconditions message on 
every write in ECKeyOutputStream (#11556)
62d982ff2d9 is described below

commit 62d982ff2d9f8c157856c12c79bcbd6967a615e5
Author: Andrey Yarovoy <[email protected]>
AuthorDate: Fri Oct 16 05:00:15 2026 -0400

    HDDS-17032. Avoid building the Preconditions message on every write in 
ECKeyOutputStream (#11556)
---
 .../java/org/apache/hadoop/ozone/client/io/ECKeyOutputStream.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/ECKeyOutputStream.java
 
b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/ECKeyOutputStream.java
index 91055a3962f..f9a631be82f 100644
--- 
a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/ECKeyOutputStream.java
+++ 
b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/ECKeyOutputStream.java
@@ -687,9 +687,7 @@ private ByteBuffer getLastDataCell() {
     private int addToDataBuffer(int i, byte[] b, int off, int len) {
       final ByteBuffer buf = dataBuffers[i];
       final int pos = buf.position() + len;
-      Preconditions.checkState(pos <= cellSize,
-          "Position(" + pos + ") is greater than the cellSize("
-              + cellSize + ").");
+      Preconditions.checkState(pos <= cellSize, "Position(%s) is greater than 
the cellSize(%s).", pos, cellSize);
       buf.put(b, off, len);
       return pos;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to