[
https://issues.apache.org/jira/browse/CASSANDRA-21511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brandon Williams updated CASSANDRA-21511:
-----------------------------------------
Component/s: Local/Caching
Discovered By: User Report
Fix Version/s: 4.1.x
5.0.x
6.x
Severity: Normal
Status: Open (was: Triage Needed)
> 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
> Components: Local/Caching
> Reporter: Runtian Liu
> Assignee: Runtian Liu
> Priority: Normal
> Fix For: 4.1.x, 5.0.x, 6.x
>
> 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]