We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d67a3 commit 14ca824Copy full SHA for 14ca824
core/src/main/scala/org/apache/spark/util/io/ChunkedByteBuffer.scala
@@ -65,7 +65,7 @@ private[spark] class ChunkedByteBuffer(var chunks: Array[ByteBuffer]) {
65
for (bytes <- getChunks()) {
66
while (bytes.remaining() > 0) {
67
val ioSize = Math.min(bytes.remaining(), bufferWriteChunkSize)
68
- bytes.limit(bytes.position + ioSize)
+ bytes.limit(bytes.position + ioSize.toInt)
69
channel.write(bytes)
70
}
71
0 commit comments