-
Notifications
You must be signed in to change notification settings - Fork 493
File cache is not persistent across remounts #2137
Copy link
Copy link
Open
Labels
docDoc: problem with incorrect or missing documentation.Doc: problem with incorrect or missing documentation.feature requestFeature request: request to add new features or functionalityFeature request: request to add new features or functionalityp1P1P1questionCustomer Issue: question about how to use toolCustomer Issue: question about how to use tool
Metadata
Metadata
Assignees
Labels
docDoc: problem with incorrect or missing documentation.Doc: problem with incorrect or missing documentation.feature requestFeature request: request to add new features or functionalityFeature request: request to add new features or functionalityp1P1P1questionCustomer Issue: question about how to use toolCustomer 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 /mntwith the config file below:vmtouch -t /mnt/large_filetakes ~18 seconds.umount /mntand remount.vmtouch -t /mnt/large_filestill 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.