File cache is not persistent across remounts #2137
Labels
doc
Doc: problem with incorrect or missing documentation.
feature request
Feature request: request to add new features or functionality
p1
P1
question
Customer Issue: question about how to use tool
Describe the issue
When GCSFuse unmounts and remounts, the file cache populated doesn't seem to be accessed.
n https://cloud.google.com/storage/docs/gcsfuse-cache#persistence says that the file cache should be reused when the metadata cache has been populated, but it doesn't seem to be the case.
A brief grep through the codebase suggests that contentcache have the code that handles persistence of the cache, but this functionality is not present in the filecache code. The contentcache seems completely unused currently so the functionality is lost.
Reproduction
The following experiment is conducted:
gcsfuse -o ro --file-mode=755 --config-file=gcs.yaml BUCKET_NAME /mnt
with the config file below:vmtouch -t /mnt/large_file
takes ~18 seconds.umount /mnt
and remount.vmtouch -t /mnt/large_file
still takes ~18 seconds.System (please complete the following information):
Additional context
Add any other context about the problem here.
SLO:
We strive to respond to all bug reports within 24 business hours.
The text was updated successfully, but these errors were encountered: