Skip to content

rgw/multisite-notification: retry storing bucket notification attrs for ECANCELED(ConcurrentModification) errors. - #57004

Merged
cbodley merged 1 commit into
ceph:mainfrom
kchheda3:wip-fix-retry
May 2, 2024

Conversation

@kchheda3

@kchheda3 kchheda3 commented Apr 19, 2024 •

Copy link
Copy Markdown
Contributor
  Fixes: https://tracker.ceph.com/issues/65590

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@github-actions github-actions Bot added the rgw label Apr 19, 2024
@kchheda3 kchheda3 changed the title wip-fix-retry rgw/multisite-notification: retry storing bucket notification attrs for ECANCELED(ConcurrentModification) errors. Apr 19, 2024
@kchheda3
kchheda3 requested a review from cbodley April 19, 2024 15:01
@kchheda3 kchheda3 self-assigned this Apr 19, 2024
@kchheda3
kchheda3 marked this pull request as ready for review April 19, 2024 15:02
@kchheda3
kchheda3 requested a review from a team as a code owner April 19, 2024 15:02

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

👍

Comment thread src/rgw/rgw_op.h Resolved
@cbodley

cbodley commented Apr 19, 2024

Copy link
Copy Markdown
Contributor

did some local testing on this. it took a while to reproduce a ECANCELED error in RGWPSCreateNotifOp (they mostly happened in the metadata sync thread). eventually i bumped the number of zones to 8 and caught one:

2024-04-19T12:20:40.887-0400 7fec3a2006c0  1 -- 192.168.245.130:0/1590865445 <== osd.0 v2:192.168.245.130:6826/2794811376 8106 ==== osd_op_reply(8050 .bucket.meta.jhajal-1:9039f7f8-6dd6-4737-8cfa-1df8c370413a.4176.1 [delete,create,call,call,writefull 0~382,setxattr (185),setxattr (457)] v16'32 uv31 ondisk = -125 ((125) Operation canceled)) ==== 461+0+0 (crc 0 0 0) 0x55eab6eed440 con 0x55eab2c24880
2024-04-19T12:20:40.887-0400 7feba92006c0 10 req 13273874293440243183 0.017000554s s3:pubsub_notification_create_s3 removing a4.rgw.meta+root+.bucket.meta.jhajal-1:9039f7f8-6dd6-4737-8cfa-1df8c370413a.4176.1 from cache

we try again and succeed:

2024-04-19T12:20:40.890-0400 7febad8006c0  1 -- 192.168.245.130:0/1590865445 --> [v2:192.168.245.130:6826/2794811376,v1:192.168.245.130:6827/2794811376] -- osd_op(unknown.0.0:8054 4.0 4:62c1eabf:root::.bucket.meta.jhajal-1%3a9039f7f8-6dd6-4737-8cfa-1df8c370413a.4176.1:head [delete,create,call version.check_conds in=122b,call version.set in=58b,writefull 0~382 in=382b,setxattr user.rgw.acl (185) in=197b,setxattr user.rgw.bucket-notification (1269) in=1297b] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e16) -- 0x55eab2bd1500 con 0x55eab2c24880
2024-04-19T12:20:40.892-0400 7fec3a2006c0  1 -- 192.168.245.130:0/1590865445 <== osd.0 v2:192.168.245.130:6826/2794811376 8110 ==== osd_op_reply(8054 .bucket.meta.jhajal-1:9039f7f8-6dd6-4737-8cfa-1df8c370413a.4176.1 [delete,create,call,call,writefull 0~382,setxattr (185),setxattr (1269)] v16'33 uv33 ondisk = 0) ==== 461+0+0 (crc 0 0 0) 0x55eab27b0b40 con 0x55eab2c24880

and the op returns success 👍

2024-04-19T12:20:40.899-0400 7febaa6006c0  2 req 13273874293440243183 0.029000944s s3:pubsub_notification_create_s3 http status=200
2024-04-19T12:20:40.899-0400 7febaa6006c0  1 ====== req done req=0x7fec3f3fe650 op status=0 http_status=200 latency=0.029000944s ======

Comment thread src/rgw/rgw_rest_pubsub.cc Resolved
Comment thread src/rgw/rgw_rest_pubsub.cc Resolved
@cbodley

cbodley commented Apr 25, 2024

Copy link
Copy Markdown
Contributor

just waiting for review comments to be resolved here

@kchheda3

Copy link
Copy Markdown
Contributor Author

just waiting for review comments to be resolved here

sorry i had missed the comment

…or ECANCELED(ConcurrentModification) errors.

An ECANCELED error coming from our write of the bucket instance metadat is a common error for metadata writes on secondary zones, because secondary write races with metadata sync from the write that is forwarded to the master zone

Signed-off-by: kchheda3 <[email protected]>
@cbodley

cbodley commented May 2, 2024

Copy link
Copy Markdown
Contributor

No space left on device

@cbodley

cbodley commented May 2, 2024

Copy link
Copy Markdown
Contributor

jenkins test submodules

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.

3 participants