-
Notifications
You must be signed in to change notification settings - Fork 832
Update Thanos objsstore #5515
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
Update Thanos objsstore #5515
Conversation
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
if errors.Is(err, bucket.ErrCustomerManagedKeyAccessDenied) { | ||
u.storesErrorsMu.Lock() | ||
u.storesErrors[job.userID] = err | ||
u.storesErrors[job.userID] = httpgrpc.Errorf(int(codes.PermissionDenied), "store error: %s", err) |
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.
Any reason we wrap this to httpgrpc error?
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.
Seems it is used in testing only?
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.
This get translated to a 4xx here:
cortex/pkg/querier/blocks_store_queryable.go
Lines 653 to 655 in 1d40924
if s.Code() == codes.PermissionDenied { | |
return validation.AccessDeniedError(s.Message()) | |
} |
This was causing 5xx in this case.
Signed-off-by: Alan Protasio <alanprot@gmail.com>
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
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]