uschindler commented on pull request #2052: URL: https://github.com/apache/lucene-solr/pull/2052#issuecomment-748516524
I think I know the problem: when you call alignedSlice, the buffer's remaining() may be no longer the bufferSize. All calculations afterwards are then using the bufferSize as passed to method. So we have to adjust buffer size. Maybe this is caused by the alignment in the WIndows OS, which is different to linux. See here: > `buffersize=262144 blocksize=512 slice=261632` The first is requested buffersize by the constructor of the indexoutput, blocksize is returned by OS and the length of the slice after allocateDirect and alignment is smaller. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org