-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NC | NSFS | bucket_namespace_cache
Is Not Updated Between Forks
#8391
Comments
Hi,
Note: This comment might be edited in case we will refer to this issue again. cc: @nadavMiz @romayalon |
@shirady @romayalon @nimrod-becker We can add a new (optional?) namespace method that will check for validity of the current cache item in the bucketspace before checking the valid_until time. This will allow bucketspace_fs to quickly stat the bucket.json file and check for mtime/ctime change to quickly invalidate the cache. The same approach can be done for account_cache and accountspace. |
Environment info
Actual behavior
ENDPOINT_FORKS
in theconfig.json
) thebucket_namespace_cache
is not shared between the forks. Currently, we need to wait for one minute before the item is cleaned from the cache.Expected behavior
Steps to reproduce
This issue was raised as part of issue #8368
sudo vi /etc/noobaa.conf.d/config.json
and{"ENDPOINT_FORKS": 2}
).more details about the steps can be found in this comment.
It is not guaranteed that you will reproduce it since it might be that all the changes would be from the same child process.
More information - Screenshots / Logs / Other output
Example of policies:
from policy1:
to policy2:
The text was updated successfully, but these errors were encountered: