Skip to content

tentacle: rgw: skip writing ObjectCache when incoming obj_version is stale - #71060

Merged
batrick merged 4 commits into
ceph:tentaclefrom
SaravananPalanisamyRWTH:wip-79147-tentacle
Sep 10, 2026
Merged

batrick merged 4 commits into
ceph:tentaclefrom
SaravananPalanisamyRWTH:wip-79147-tentacle

Conversation

@SaravananPalanisamyRWTH

Copy link
Copy Markdown

@SaravananPalanisamyRWTH
SaravananPalanisamyRWTH requested a review from a team as a code owner August 14, 2026 11:04
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 14, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@adamemerson

Copy link
Copy Markdown
Contributor

Please rebase this

ObjectCache::put() always overwrote the cache version without checking
if a newer one was already stored. Guard the write: when both the
existing and incoming entries carry CACHE_FLAG_OBJV with the same tag,
skip the put, if the incoming version is lower

Fixes: https://tracker.ceph.com/issues/77554

Signed-off-by: Saravanan Palanisamy <[email protected]>
(cherry picked from commit ff056da)
Inject a configurable sleep in distribute_cache() before the watch/notify
is sent, to hold a cache notification in-flight and reproduce timing-
sensitive races in integration tests. Reuses the shared
rgw_inject_delay_sec / rgw_inject_delay_pattern fault-injection framework
(pattern "delay_distribute_cache"). Do not use in production.

Signed-off-by: Saravanan Palanisamy <[email protected]>
(cherry picked from commit 75ec93a)
@github-actions github-actions Bot added needs-ci-approval build/ops rgw tests and removed releng-audit-pass Release engineering: passed backport verification audit. labels Aug 26, 2026
@github-actions github-actions Bot added this to the tentacle milestone Aug 26, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 26, 2026
Tests: https://tracker.ceph.com/issues/77731
Signed-off-by: Saravanan Palanisamy <[email protected]>
(cherry picked from commit a6d239e)

Conflicts:
       src/test/rgw/rgw_multi/tests.py
- test layout differs between main and tentacle.
- add test_stale_bucket_owner_after_concurrent_chown() unchanged after
  test_object_lock_sync(), the corresponding location in tentacle.
@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @SaravananPalanisamyRWTH.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 26, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. and removed needs-rebase labels Aug 26, 2026
@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

Please rebase this

@adamemerson I did rebase with tentacle. The resulting conflict resolution has been documented in 7970b2.

Still the automated audit fails. Could you comment /audit override here ?

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@adamemerson adamemerson removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 26, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #71060 SOURCE PR SOURCE STATUS
36ee691 rgw: skip writing ObjectCache when incoming obj_version is stale PR #69748 ff056da rgw: skip writing ObjectCache when incoming obj_version is stale
01630b3 test/rgw: add unit tests for ObjectCache stale version guard 34b8199 test/rgw: add unit tests for ObjectCache stale version guard
b2f633d rgw: add delay injection in distribute_cache 75ec93a rgw: add delay injection in distribute_cache
7970b2f rgw/test/multisite: test stale bucket owner after concurrent chown a6d239e rgw/test/multisite: test stale bucket owner after concurrent chown

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 7970b2f (cherry-pick of a6d239e)

Affected File(s)

Range Diff

Click to expand
--- Original (a6d239eb)
+++ Backport (7970b2f6)
@@ -2,3 +2,10 @@
 
 Tests: https://tracker.ceph.com/issues/77731
 Signed-off-by: Saravanan Palanisamy <[email protected]>
+(cherry picked from commit a6d239eb3c85282f5e4899d7d2e67d406427840f)
+
+Conflicts:
+       src/test/rgw/rgw_multi/tests.py
+- test layout differs between main and tentacle.
+- add test_stale_bucket_owner_after_concurrent_chown() unchanged after
+  test_object_lock_sync(), the corresponding location in tentacle.

================================================================================
RANGE DIFF
================================================================================

1:  a6d239eb3c8 ! 1:  7970b2f6cd1 rgw/test/multisite: test stale bucket owner after concurrent chown
    @@ Commit message
     
         Tests: https://tracker.ceph.com/issues/77731
         Signed-off-by: Saravanan Palanisamy <[email protected]>
    +    (cherry picked from commit a6d239eb3c85282f5e4899d7d2e67d406427840f)
    +
    +    Conflicts:
    +           src/test/rgw/rgw_multi/tests.py
    +    - test layout differs between main and tentacle.
    +    - add test_stale_bucket_owner_after_concurrent_chown() unchanged after
    +      test_object_lock_sync(), the corresponding location in tentacle.
     
      ## src/test/rgw/rgw_multi/tests.py ##
    -@@ src/test/rgw/rgw_multi/tests.py: def test_bucket_full_sync_when_the_bucket_is_deleted_in_the_meantime():
    -         except:
    -             pass
    -         raise
    +@@ src/test/rgw/rgw_multi/tests.py: def test_object_lock_sync():
    + 
    +     response = secondary.s3_client.get_object_lock_configuration(Bucket=bucket.name)
    +     assert(response['ObjectLockConfiguration'] == lock_config)
     +
     +def test_stale_bucket_owner_after_concurrent_chown():
     +    """ Integration test for https://tracker.ceph.com/issues/77731 """

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

/audit override

Backport Audit/Execution and Routing job still seems to be failing.

@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80189.
@SaravananPalanisamyRWTH , if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 10, 2026
@batrick
batrick merged commit 5b26b89 into ceph:tentacle Sep 10, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants