Repository navigation
Block versioning suspension and object lock apis in Pull Replication context - #6419
SylvainSenechal wants to merge 3 commits into
Conversation
Hello sylvainsenechal,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 |
| "@opentelemetry/instrumentation-ioredis": "~0.70.0", | ||
| "@opentelemetry/instrumentation-mongodb": "~0.75.0", | ||
| "@scality/arsenal": "^8.6.7", | ||
| "@scality/arsenal": "git+https://github.com/scality/Arsenal#01e627f1141b648ff72676c1984c9aab700e6653", |
There was a problem hiding this comment.
Arsenal is pinned to a raw commit SHA from git instead of a released version. Release Arsenal with the pull replication markers and pin to that version (e.g. ^8.6.8) before merging.
| integrity sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug== | ||
|
|
||
| "@scality/arsenal@^8.6.0-0", "@scality/arsenal@^8.6.7": | ||
| "@scality/arsenal@^8.6.0-0", "@scality/arsenal@git+https://github.com/scality/Arsenal#01e627f1141b648ff72676c1984c9aab700e6653": |
There was a problem hiding this comment.
This lockfile looks hand-edited and inconsistent. The utapi entry now lists "@scality/arsenal" "^8.6.0", but no key matches @scality/arsenal@^8.6.0: the key here is still ^8.6.0-0. Also, version "8.6.7" is kept for a git commit. yarn install --frozen-lockfile will likely say the lockfile needs updating. Regenerate it with yarn install, ideally after switching to a released Arsenal version.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ Coverage Diff @@
## development/9.6 #6419 +/- ##
================================================
Coverage 91.00% 91.01%
================================================
Files 208 208
Lines 39614 39638 +24
================================================
+ Hits 36051 36075 +24
Misses 3563 3563
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| return; | ||
| } | ||
| const isPullReplicationSource = Object.keys(bucket.getPullReplicationSources() || {}).length > 0; | ||
| if (versioningConfiguration.Status === 'Suspended' && isPullReplicationSource) { |
There was a problem hiding this comment.
Debating a bit whether we should just block all putBucketVersioning api calls as soon as the bucket is marked as a replication source (instead of just suspended).
maeldonn
left a comment
There was a problem hiding this comment.
Switching to async/await would make these tests easier to read
Issue: CLDSRV-1089
Arsenal related pr : scality/Arsenal#2771
Block versioning suspension and object lock apis in Pull Replication context
TODO: Discussion about PutObjectRetention / PutObjectLegalHold but considering the length of this pr, can be done in a separated ticket anyways