-
Notifications
You must be signed in to change notification settings - Fork 182
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
cache special drive items until space root changes #6189
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
💥 Acceptance test localApiTests-apiSpaces-ocis failed. Further test are cancelled... |
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
0d6ea63
to
ca638dd
Compare
restarted the build ... |
hm, dhe cache works correctly, but when determining which special items to fetch the space opaque never contains a |
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
c3881bd
to
f2b86d8
Compare
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
It seems the size is wrong ... maybe because the cache for other users was not invalidated? but the gateway should not have a stat cache ... a problem for future me ...
|
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
when updating space metadata we do not update the mtime (because updating xatrs only changes the chtime and when moving to messagepack metadata we kept that). This prevents us from using the mtime / etag of the space to invalidate the stat cache for the image: first the special file is uploaded (image or readme), the mtime propagates to the root. then the space metadata is changed, not causing an mtime change. the code checks if space mtime and cached mtime are the same ... hmmm |
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cache special drive items until space root changes
When listing drives we now cach special drive items until the space root changes again or the TTL is reached.
brings back the cache that was dropped in #3141