hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Force adapter Buckets to persist in the hierarchy despite their reference counts reaching 0

Open ChristopherHogan opened this issue 4 years ago • 0 comments

The Problem

IOR "read after write" performance with the POSIX adapter will be poor. The IOR flow for "read after write" is

open
write
close

open
read
close

The result of the first close will be that the file's Bucket and Blobs are destroyed, so when the read arrives, Hermes will have to retrieve the data from disk again.

Solution

Using the native API, this is easily solved by calling Bucket::Close instead of Bucket::Destroy. I guess I need to implement a way to pass a hint to Hermes from the adapters to close instead of destroy.

ChristopherHogan avatar Oct 28 '21 15:10 ChristopherHogan