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 33a2796 commit ab384d4Copy full SHA for ab384d4
core/src/main/scala/org/apache/spark/util/io/ChunkedByteBuffer.scala
@@ -60,7 +60,7 @@ private[spark] class ChunkedByteBuffer(var chunks: Array[ByteBuffer]) {
60
for (bytes <- getChunks()) {
61
val capacity = bytes.limit()
62
while (bytes.position() < capacity && bytes.remaining() > 0) {
63
- val ioSize = Math.min(bytes.remaining(), NIO_BUFFER_LIMIT.toInt)
+ val ioSize = Math.min(bytes.remaining(), NIO_BUFFER_LIMIT)
64
bytes.limit(bytes.position + ioSize)
65
channel.write(bytes)
66
}
0 commit comments