Project

General

Profile

Actions

Bug #76729

closed
KC KC

rgw/notification: Notification eventTime set to "0.000000" during concurrent overwrites

Bug #76729: rgw/notification: Notification eventTime set to "0.000000" during concurrent overwrites

Added by Krunal Chheda 7 months ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
squid, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-2120-ge8e8e6fe6a
Released In:
v21.2.0~251
Upkeep Timestamp:
2026-11-04T01:10:53+00:00

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


Related issues 2 (2 open — 0 closed)

Copied to rgw - Backport #77264: squid: rgw/notification: Notification eventTime set to "0.000000" during concurrent overwritesNewKrunal Chheda

Actions
Copied to rgw - Backport #77265: tentacle: rgw/notification: Notification eventTime set to "0.000000" during concurrent overwritesNewKrunal Chheda

Actions

KC Updated by Krunal Chheda 7 months ago Actions #1

  • Tags set to notifications
  • Source set to Community (dev)
  • Backport set to squid, tentacle

KC Updated by Krunal Chheda 7 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Pull request ID set to 69033

UB Updated by Upkeep Bot 6 months ago Actions #3

  • 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 Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • 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 Actions #8

  • 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 Actions #9

  • 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
Actions

Also available in: PDF Atom