Skip to content

squid: rgw: skip writing ObjectCache when incoming obj_version is stale - #71059

Merged
batrick merged 4 commits into
ceph:squidfrom
SaravananPalanisamyRWTH:wip-79145-squid
Nov 16, 2026
Merged

batrick merged 4 commits into
ceph:squidfrom
SaravananPalanisamyRWTH:wip-79145-squid

Conversation

@SaravananPalanisamyRWTH

Copy link
Copy Markdown

@SaravananPalanisamyRWTH
SaravananPalanisamyRWTH requested a review from a team as a code owner August 14, 2026 10:54
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 14, 2026
@SaravananPalanisamyRWTH
SaravananPalanisamyRWTH force-pushed the wip-79145-squid branch 2 times, most recently from 934043f to 82f86d6 Compare August 14, 2026 11:12
@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 the releng-audit-fail Release engineering: failed backport verification audit. label Aug 26, 2026
@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

. The resulting conflict resolution has been documented in 82f86d6

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

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added 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

@cbodley cbodley 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.

https://tracker.ceph.com/issues/80389 tracks a regression in multisite, i'd like to see that resolved before we merge backports

@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

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)
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
- appended the new test after test_object_lock_sync(), which ends the file in squid
@github-actions

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous override has been removed.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 27, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

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

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson

Copy link
Copy Markdown
Contributor

@yuriw This commit needs to go in the same test batch as #72531 so they merge together.

@adamemerson

Copy link
Copy Markdown
Contributor

@cbodley You blocked this for a followup PR which I've marked as needing to be tested along with it. Is that sufficient?

@anrao19

anrao19 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao13-testing-2026-10-29-0444-squid.

@anrao19

anrao19 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao13-testing-2026-10-29-0444-squid.

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

@batrick

batrick commented Nov 3, 2026

Copy link
Copy Markdown
Member

This needs retested with #72531.

@anrao19

anrao19 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-04-1104-squid.

@anrao19

anrao19 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-04-1104-squid.

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

@batrick
batrick merged commit c96b384 into ceph:squid Nov 16, 2026
33 of 34 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.

6 participants