Terracotta-OSS / offheap-store

A library that provides a set of map and cache implementations that store data outside of the normal Java heap
Apache License 2.0
90 stars 46 forks source link

MappedPageSource doesn't handle interaction of interrupted threads with it's FileChannel #49

Closed chrisdennis closed 3 years ago

chrisdennis commented 7 years ago

MappedPageSource uses a FileChannel internally to truncate and extend the underlying file, map regions, and flush changes out. These accesses need to be made safe when the calling thread is being interrupted. This can/should probably be done in the same way that we do for FileBackedStorageEngine.

nikowitt commented 5 years ago

Hi, are there any news regarding this? We experience the same/similar assue after moving to EhCache 3.5 and having the ability to interrupt threads.

cdalexndr commented 4 years ago

Original issue: https://groups.google.com/forum/#!topic/ehcache-users/QpelMYURf4k