Project

General

Profile

Actions

Bug #65590

closed
CB KC

rgw_multi.tests.test_topic_notification_sync: PutBucketNotificationConfiguration fails with ConcurrentModification

Bug #65590: rgw_multi.tests.test_topic_notification_sync: PutBucketNotificationConfiguration fails with ConcurrentModification

Added by Casey Bodley over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-1914-gbf48674e34
Released In:
v20.2.0~2993
Upkeep Timestamp:
2025-11-01T01:22:18+00:00

Description

2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:======================================================================
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:ERROR: rgw_multi.tests.test_topic_notification_sync
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:----------------------------------------------------------------------
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:Traceback (most recent call last):
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/virtualenv/lib/python3.8/site-packages/nose/case.py", line 198, in runTest
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:    self.test(*self.arg)
2024-04-18T20:15:45.433 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_ceph-c_5d4ca1d4687229e2ba4144f00b14e7c911ce18dd/qa/../src/test/rgw/rgw_multi/tests.py", line 1788, in test_topic_notification_sync
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:    zone_conn.create_notification(bucket.name, [topic_conf])
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_ceph-c_5d4ca1d4687229e2ba4144f00b14e7c911ce18dd/qa/tasks/rgw_multi/zone_rados.py", line 160, in create_notification
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:    return self.s3_client.put_bucket_notification_configuration(
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/virtualenv/lib/python3.8/site-packages/botocore/client.py", line 553, in _api_call
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:    return self._make_api_call(operation_name, kwargs)
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/virtualenv/lib/python3.8/site-packages/botocore/client.py", line 1009, in _make_api_call
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:    raise error_class(parsed_response, operation_name)
2024-04-18T20:15:45.434 INFO:tasks.rgw_multisite_tests:botocore.exceptions.ClientError: An error occurred (ConcurrentModification) when calling the PutBucketNotificationConfiguration operation: None

this is an ECANCELED error coming from our write of the bucket instance metadata. it's a common error for metadata writes on secondary zones, because our write races with metadata sync from the write that we forwarded to the master zone

rgw ops should generally retry these writes on ECANCELED after reading the updated bucket metadata. see a very simple example from RGWPutCORS::execute(): https://github.com/ceph/ceph/blob/c46a99d/src/rgw/rgw_op.cc#L6058-L6061

for RGWPSCreateNotifOp::execute_v2(), the entire block of https://github.com/ceph/ceph/blob/c46a99d/src/rgw/rgw_rest_pubsub.cc#L1327-L1362 should be done inside of retry_raced_bucket_write()

i guess that means the retry_raced_bucket_write() template needs to move from rgw_op.cc to rgw_op.h or some other header


Related issues 1 (0 open — 1 closed)

Copied to rgw - Backport #65767: squid: rgw_multi.tests.test_topic_notification_sync: PutBucketNotificationConfiguration fails with ConcurrentModificationResolvedCasey Bodley

Actions

CB Updated by Casey Bodley over 2 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Krunal Chheda
  • Pull request ID set to 57004

CB Updated by Casey Bodley over 2 years ago Actions #2

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 2 years ago Actions #3

  • Copied to Backport #65767: squid: rgw_multi.tests.test_topic_notification_sync: PutBucketNotificationConfiguration fails with ConcurrentModification added

UB Updated by Upkeep Bot over 1 year ago Actions #5

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp set to 2025-07-08T18:46:27+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #6

  • Merge Commit set to bf48674e34560df11632dc37be59768041468a2d
  • Fixed In set to v19.3.0-1914-gbf48674e34
  • Upkeep Timestamp changed from 2025-07-08T18:46:27+00:00 to 2025-08-02T04:51:40+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #7

  • Released In set to v20.2.0~2993
  • Upkeep Timestamp changed from 2025-08-02T04:51:40+00:00 to 2025-11-01T01:22:18+00:00
Actions

Also available in: PDF Atom