You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by du...@apache.org on 2024/02/27 22:47:46 UTC
(ozone) branch master updated: HDDS-10432. Hadoop FS client write(byte[], int, int) is very slow in streaming (#6287)
This is an automated email from the ASF dual-hosted git repository.
duong 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 1e98ebb449 HDDS-10432. Hadoop FS client write(byte[], int, int) is very slow in streaming (#6287)
1e98ebb449 is described below
commit 1e98ebb4491c5f3d77dd56497d4f96f87558f274
Author: Duong Nguyen <du...@gmail.com>
AuthorDate: Tue Feb 27 14:47:40 2024 -0800
HDDS-10432. Hadoop FS client write(byte[], int, int) is very slow in streaming (#6287)
---
.../org/apache/hadoop/ozone/client/io/ByteBufferOutputStream.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hadoop-hdds/client/src/main/java/org/apache/hadoop/ozone/client/io/ByteBufferOutputStream.java b/hadoop-hdds/client/src/main/java/org/apache/hadoop/ozone/client/io/ByteBufferOutputStream.java
index 174fd8c75f..19ce31c529 100644
--- a/hadoop-hdds/client/src/main/java/org/apache/hadoop/ozone/client/io/ByteBufferOutputStream.java
+++ b/hadoop-hdds/client/src/main/java/org/apache/hadoop/ozone/client/io/ByteBufferOutputStream.java
@@ -39,6 +39,11 @@ public abstract class ByteBufferOutputStream extends OutputStream
write(ByteBuffer.wrap(byteArray));
}
+ @Override
+ public void write(@Nonnull byte[] byteArray, int off, int len) throws IOException {
+ write(ByteBuffer.wrap(byteArray), off, len);
+ }
+
@Override
public void write(int b) throws IOException {
write(new byte[]{(byte) b});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org