You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by so...@apache.org on 2026/10/16 09:00:23 UTC

(ozone) branch master updated: HDDS-17032. Avoid building the Preconditions message on every write in ECKeyOutputStream (#11556)

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 <11...@users.noreply.github.com>
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: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org