Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decref CacheFileRegion after read is done not before (elastic#102848)
The CacheFileRegion instance is decref before the read operation is executed, meaning that the SharedBytes.IO instance can return to the pool of free regions, being polled and written by another thread for another cache file region, before the first read is effectively completed (and will return incorrect bytes).
- Loading branch information