Repository navigation
tentacle: rgw: skip writing ObjectCache when incoming obj_version is stale - #71060
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
ok to test |
|
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)
Fixes: https://tracker.ceph.com/issues/77554 Signed-off-by: Saravanan Palanisamy <[email protected]> (cherry picked from commit 34b8199)
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)
7145a8f to
74695a6
Compare
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.
74695a6 to
7970b2f
Compare
|
/audit retest |
|
🔄 Audit Retest Triggered by @SaravananPalanisamyRWTH. |
@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 |
|
/audit override |
There was a problem hiding this comment.
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
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)
src/test/rgw/rgw_multi/tests.py
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @adamemerson. |
Backport Audit/Execution and Routing job still seems to be failing. |
|
pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80189. |
backport tracker: https://tracker.ceph.com/issues/79147
backport of #69748
parent tracker: https://tracker.ceph.com/issues/77554
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh