Runtian Liu created CASSANDRA-21511:
---------------------------------------
Summary: NativeLibrary.trySkipCache incorrectly decrements offset
when splitting ranges larger than Integer.MAX_VALUE
Key: CASSANDRA-21511
URL: https://issues.apache.org/jira/browse/CASSANDRA-21511
Project: Apache Cassandra
Issue Type: Bug
Reporter: Runtian Liu
Assignee: Runtian Liu
Cassandra’s {{NativeLibrary.trySkipCache}} incorrectly moves the file offset
backward when splitting page-cache eviction ranges larger than ~2 GiB.
Subsequent {{posix_fadvise}} calls may use negative offsets and fail, leaving
part of the file cached.
Fix {{offset -= sublen}} to {{offset += sublen}} and add boundary and
multi-chunk unit tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]