-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use block.MetaFetcher in Store Gateway. #1936
Conversation
949fd2c
to
200d930
Compare
e9a646e
to
8172e0a
Compare
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.
small nit 👍
|
||
if err := os.MkdirAll(dir, os.ModePerm); err != nil { | ||
return errors.Wrap(err, "create dir") |
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.
return errors.Wrap(err, "create dir") | |
return errors.Wrapf(err, "create dir %s", dir) |
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.
Not needed as MkdirAll
error will put path
inside error.
8172e0a
to
63bfaf9
Compare
Fixes: #1874 * Corrupted disk cache for meta.json is handled gracefully. * Synchronize was not taking into account deletion by removing meta.json. * Prepare for future implementation of https://thanos.io/proposals/201901-read-write-operations-bucket.md/ * Better observability for syncronize process. * More logs for store startup process. TODO in separate PR: * More observability for index-cache loading / adding time. Signed-off-by: Bartlomiej Plotka <[email protected]>
63bfaf9
to
a654fe4
Compare
Fixes: #1874
Depends on: #1934
Changes
TODO in separate PR:
Verification
Signed-off-by: Bartlomiej Plotka [email protected]