pan3793 commented on code in PR #3600:
URL: https://github.com/apache/celeborn/pull/3600#discussion_r2799177236
##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/FlushTask.scala:
##########
@@ -144,7 +144,7 @@ private[worker] class S3FlushTask(
override def flush(copyBytes: Array[Byte]): Unit = {
val readableBytes = buffer.readableBytes()
val bytes = convertBufferToBytes(buffer, copyBytes, readableBytes)
- val inputStream = new ByteArrayInputStream(bytes)
+ val inputStream = new ByteArrayInputStream(bytes, 0, readableBytes)
Review Comment:
this matches what you say in the PR description, and makes sense to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]