server icon indicating copy to clipboard operation
server copied to clipboard

trigger a rescan when trying to fopen a file that exists in cache but not on disk

Open icewind1991 opened this issue 3 years ago • 1 comments

When the file index gets out of sync, any attempt by client to open a deleted (but still in cache) file will result in errors until an admin manually triggers a scan to repair it.

Rather than letting clients loop in errors forever we can just detect this error condition and repair the file index ourselves.

Note that this has no effect on primary object store as there file_exists will check the cache.

icewind1991 avatar Aug 16 '22 15:08 icewind1991

I am facing this on a weekly basis with my dev instance where the data folder get reset frequently! Thanks for diving into this!

skjnldsv avatar Aug 16 '22 17:08 skjnldsv

/backport to stable25

icewind1991 avatar Oct 03 '22 15:10 icewind1991

/backport to stable24

icewind1991 avatar Oct 03 '22 15:10 icewind1991

/backport to stable23

icewind1991 avatar Oct 03 '22 15:10 icewind1991