Skip to content

umbrella: rgw: skip writing ObjectCache when incoming obj_version is stale - #71061

Open
SaravananPalanisamyRWTH wants to merge 4 commits into
ceph:umbrellafrom
SaravananPalanisamyRWTH:wip-79146-umbrella
Open

SaravananPalanisamyRWTH wants to merge 4 commits into
ceph:umbrellafrom
SaravananPalanisamyRWTH:wip-79146-umbrella

Conversation

@SaravananPalanisamyRWTH

Copy link
Copy Markdown

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)
@SaravananPalanisamyRWTH
SaravananPalanisamyRWTH requested a review from a team as a code owner August 14, 2026 11:08
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 14, 2026

@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

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

Labels

ci-approved releng-audit-pass Release engineering: passed backport verification audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants