Bug #76729
closedrgw/notification: Notification eventTime set to "0.000000" during concurrent overwrites
0%
Description
Here's the flow during the rapid-fire overwrites:
Request A and Request B both try to write the same object simultaneously
Request A's _do_write_meta (first call, assume_noent=true) prepares the rados op
Request B completes its write first, changing the object's version/tag
Request A's rgw_rados_operate returns -ECANCELED (cmpxattr guard failed because the tag changed)
Goes to done_cancel (line 3365) — *meta.mtime is NOT set
Line 3384-3387: r = -ECANCELED → r = 0 (converted to success!)
Returns 0 (success) to write_meta
Now in write_meta:
The write_meta returns success (0) but *meta.mtime was never set! The mtime stays at its default zero value, which then gets passed to publish_commit → eventTime: "0.000000".
This only happens when:
assume_noent = true (no if_match/if_nomatch headers — standard PUT)
The rados write gets -ECANCELED (object was concurrently modified by another write)
The error is silently converted to 0 at line 3386
KC Updated by Krunal Chheda 7 months ago
- Tags set to notifications
- Source set to Community (dev)
- Backport set to squid, tentacle
KC Updated by Krunal Chheda 7 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 69033
UB Updated by Upkeep Bot 6 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to e8e8e6fe6a356a4c622582a4c462b5f8b595f9bd
- Fixed In set to v21.0.0-2120-ge8e8e6fe6a
- Upkeep Timestamp set to 2026-06-09T07:59:54+00:00
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #77264: squid: rgw/notification: Notification eventTime set to "0.000000" during concurrent overwrites added
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #77265: tentacle: rgw/notification: Notification eventTime set to "0.000000" during concurrent overwrites added
UB Updated by Upkeep Bot 6 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-06-09T07:59:54+00:00 to 2026-08-27T18:33:56+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~250
- Upkeep Timestamp changed from 2026-08-27T18:33:56+00:00 to 2026-10-24T01:18:20+00:00
UB Updated by Upkeep Bot 29 days ago
- Released In changed from v21.2.0~250 to v21.2.0~251
- Upkeep Timestamp changed from 2026-10-24T01:18:20+00:00 to 2026-11-04T01:10:53+00:00