-
Notifications
You must be signed in to change notification settings - Fork 803
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
Changing return code from storegateway for CMK errors #5442
Changing return code from storegateway for CMK errors #5442
Conversation
9bc4569
to
a878b61
Compare
…nDenied Signed-off-by: Alan Protasio <alanprot@gmail.com>
a878b61
to
3854099
Compare
Signed-off-by: Alan Protasio <alanprot@gmail.com>
28485bb
to
c7f7ef1
Compare
c7f7ef1
to
4833995
Compare
feaa2cf
to
25be4da
Compare
25be4da
to
f1107b2
Compare
@@ -299,25 +299,22 @@ func (u *BucketStores) Series(req *storepb.SeriesRequest, srv storepb.Store_Seri | |||
} | |||
|
|||
store := u.getStore(userID) | |||
userBkt := bucket.NewUserBucketClient(userID, u.bucket, u.limits) |
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.
We are initializing a new bkt client every Series
request? Can we just use u.bucket
here?
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.
I had to do this to unwrap the error, but creating this here is just creating an object (it does not do anything).
Signed-off-by: Alan Protasio <alanprot@gmail.com>
What this PR does:
This is a follow up of #5420 and basically change the return code from
ResourceExhausted
toPermissionDenied
.Also adding the changelog that was forgotten on the last PR.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]