[
https://issues.apache.org/jira/browse/CASSANDRA-21511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095948#comment-18095948
]
Runtian Liu commented on CASSANDRA-21511:
-----------------------------------------
4.1: [https://github.com/apache/cassandra/pull/4932]
5.0: [https://github.com/apache/cassandra/pull/4933]
6.0: [https://github.com/apache/cassandra/pull/4934]
trunk: [https://github.com/apache/cassandra/pull/4935]
> 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
> Priority: Normal
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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]