WriteStream.getWriteBuffer(...) can use BufferPool.byteBuffer(...) on an existing slot in some cases.
WriteStream.handleUnwrittenData(...) can acquire a new slot to store remaining data and once again accesses the BufferPool.byteBuffer for the new slot.
There is potential for offset and limit of the original byte buffer to be reset unintentionally.
WriteStream.getWriteBuffer(...)can useBufferPool.byteBuffer(...)on an existingslotin some cases.WriteStream.handleUnwrittenData(...)can acquire a newslotto store remaining data and once again accesses theBufferPool.byteBufferfor the new slot.There is potential for
offsetandlimitof the original byte buffer to be reset unintentionally.