Skip to content

Block versioning suspension and object lock apis in Pull Replication context - #6419

Open
SylvainSenechal wants to merge 3 commits into
development/9.6from
improvement/CLDSRV-1089/pull-replication-bucket-locks
Open

SylvainSenechal wants to merge 3 commits into
development/9.6from
improvement/CLDSRV-1089/pull-replication-bucket-locks

Conversation

@SylvainSenechal

@SylvainSenechal SylvainSenechal commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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

@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Hello sylvainsenechal,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@scality scality deleted a comment from bert-e Dec 3, 2026
@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

Comment thread package.json
"@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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread yarn.lock
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":

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.01%. Comparing base (4d6a308) to head (06be56e).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/api/bucketPutObjectLock.js 100.00% <100.00%> (ø)
lib/api/bucketPutVersioning.js 93.03% <100.00%> (+0.56%) ⬆️
@@               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           
Flag Coverage Δ
checksums-disabled-tests 46.37% <25.00%> (-0.02%) ⬇️
file-ft-tests 75.68% <100.00%> (+0.01%) ⬆️
file-ft-tests-null-compat 76.16% <100.00%> (-0.04%) ⬇️
kmip-ft-tests 44.24% <25.00%> (-0.02%) ⬇️
mongo-v0-ft-tests 76.71% <100.00%> (-0.07%) ⬇️
mongo-v1-ft-tests 76.75% <100.00%> (+0.01%) ⬆️
multiple-backend 44.57% <37.50%> (-0.01%) ⬇️
s3c-ft-tests-v0 71.57% <100.00%> (+0.01%) ⬆️
s3c-ft-tests-v0-null-compat 71.63% <100.00%> (+0.01%) ⬆️
s3c-ft-tests-v0-replication-compat 71.35% <100.00%> (+0.01%) ⬆️
s3c-ft-tests-v1 71.55% <100.00%> (+0.01%) ⬆️
sur-tests 45.07% <41.66%> (-0.01%) ⬇️
sur-tests-inflights 48.38% <41.66%> (-0.03%) ⬇️
unit 81.14% <100.00%> (+0.01%) ⬆️
utapi-v2-tests 45.32% <37.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

return;
}
const isPullReplicationSource = Object.keys(bucket.getPullReplicationSources() || {}).length > 0;
if (versioningConfiguration.Status === 'Suspended' && isPullReplicationSource) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@SylvainSenechal
SylvainSenechal marked this pull request as ready for review December 3, 2026 17:23
@SylvainSenechal
SylvainSenechal requested review from a team, benzekrimaha and maeldonn December 3, 2026 17:23

@maeldonn maeldonn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching to async/await would make these tests easier to read

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants