-
Notifications
You must be signed in to change notification settings - Fork 20
ARSN-533: Get raft session ID from metadata on getBucketAttributes and getBucketAndObjectMD #2560
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
Conversation
Hello dvasilas,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
0858d72 to
fbd8ede
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development/8.2 #2560 +/- ##
===================================================
+ Coverage 71.14% 71.36% +0.21%
===================================================
Files 221 221
Lines 17810 17810
Branches 3681 3681
===================================================
+ Hits 12671 12710 +39
+ Misses 5135 5096 -39
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lib/models/BucketInfo.ts
Outdated
| capabilities?: Capabilities, | ||
| quotaMax: bigint | number, | ||
| bucketLoggingStatus?: BucketLoggingStatus, | ||
| raftSessionId?: number, |
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.
Do we really have to store this info in bucket metadata? It doesn't look like a good place to me, since it's not a property of the bucket, but extra info that we want the caller to know. I think ideally we should pass it along in a side channel (can be an extra callback arg, or within the BucketInfo returned by getBucketAndObject such as { bucket, object, raftSessionId })
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 initially chose to add it to BucketInfo to reduce the footprint of change (we could retrieve the raft session ID from the bucket info without having to modify getBucketAttributes and getBucketAndObject callbacks.
But indeed, this doesn't fit with bucket metadata. Fixed.
fbd8ede to
be4537c
Compare
d40b59e to
eb2afa5
Compare
Pass raftSessionId in callbacks for getBucket and getBucketAndObject operations.
eb2afa5 to
51640ec
Compare
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
|
/approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option The following options are set: approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue ARSN-533. Goodbye dvasilas. The following options are set: approve |
Related to: scality/bucketclient#282