Skip to content

squid: RGW: prevent shutdown hang by reconciling race between async processor and multisite sync threads - #67439

Merged
batrick merged 5 commits into
ceph:squidfrom
BBoozmen:wip-74738-squid
Aug 5, 2026
Merged

batrick merged 5 commits into
ceph:squidfrom
BBoozmen:wip-74738-squid

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

@BBoozmen BBoozmen added this to the squid milestone Feb 19, 2026
@BBoozmen BBoozmen added the rgw label Feb 19, 2026
@github-actions github-actions Bot added the tests label Feb 19, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner March 6, 2026 16:54
@BBoozmen

BBoozmen commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

To address "make check" (tox/qa) failure added the change to absolutely import datetime .

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test docs

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 26, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@yuriw

yuriw commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@BBoozmen pls rebase

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous releng-audit-override has been removed.

@BBoozmen

BBoozmen commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@adamemerson - after rebase - this, too, needs another "audit override".

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 3, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 22, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test windows

@anrao19

anrao19 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@BBoozmen

BBoozmen commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor Author

This PR has been added to squid integration testing by anuchaithra started 2026-07-29-08:44.

shaman build creation is failing @BBoozmen could you please check : https://jenkins.ceph.com/job/ceph-dev-pipeline/7723/consoleFull

@anrao19 please see the comment in the other PR included in this QA run. I believe that one is the source of the build failure.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceph Release Engineering Audit Report

Automated Backport Parity Review

Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.


Commit Parity Visualizer

BACKPORT PR #67439 SOURCE PR SOURCE STATUS
15634bc RGW: add RGWRadosThread::set_down_flag() helper PR #66369 49627a2 RGW: add RGWRadosThread::set_down_flag() helper
25781bf RGW: set down_flag early on sync processor threads during shutdown 5301549 RGW: set down_flag early on sync processor threads during shutdown
77ff594 RGW: prevent RGWAsyncRadosProcessor from queuing requests during shutdown e777558 RGW: prevent RGWAsyncRadosProcessor from queuing requests during shutdown
dd2e3a1 RGW/datalog: do not try to add entry if changeslog is shutting down 97501cb RGW/datalog: do not try to add entry if changeslog is shutting down
<<<< MISSING IN BACKPORT >>>> 8ab91a4 RGW/test_multi: add a helper function to get data sync oldest incremental change
<<<< MISSING IN BACKPORT >>>> 002463f RGW/test_multi: add a helper function to check whether data-sync is making progress
2af9300 RGW/test_multi: testcase for rgw instance hang/crash during realm reload 5e6a9c8 RGW/test_multi: testcase for rgw instance hang/crash during realm reload

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport dd2e3a1 (cherry-pick of 97501cb)

Affected File(s)

Range Diff

Click to expand
--- Original (97501cb4)
+++ Backport (dd2e3a19)
@@ -7,3 +7,8 @@
 
 Fixes: https://tracker.ceph.com/issues/66100
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit 97501cb49f245656654dd62c4f09bc0b03a55c1c)
+
+Conflicts:
+    src/rgw/driver/rados/rgw_datalog.cc
+- in squid, RGWDataChangesLog::add_entry doesn't use coroutines

================================================================================
RANGE DIFF
================================================================================

1:  97501cb49f2 < -:  ----------- RGW/datalog: do not try to add entry if changeslog is shutting down
-:  ----------- > 1:  dd2e3a19b6e RGW/datalog: do not try to add entry if changeslog is shutting down

Deviation in Backport 2af9300 (cherry-pick of 5e6a9c8)

Affected File(s)

Range Diff

Click to expand
--- Original (5e6a9c8f)
+++ Backport (2af93006)
@@ -2,3 +2,9 @@
 
 Tests: https://tracker.ceph.com/issues/66100
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit 5e6a9c8f9de457406c3ef5f44bf2069c60bc6cd5)
+
+Conflicts:
+    src/test/rgw/rgw_multi/tests.py
+- in squid, lots of testcases such as test_object_lock_sync,
+  test_bucket_replication* are missing.

================================================================================
RANGE DIFF
================================================================================

1:  5e6a9c8f9de ! 1:  2af93006235 RGW/test_multi: testcase for rgw instance hang/crash during realm reload
    @@ Commit message
     
         Tests: https://tracker.ceph.com/issues/66100
         Signed-off-by: Oguzhan Ozmen <[email protected]>
    +    (cherry picked from commit 5e6a9c8f9de457406c3ef5f44bf2069c60bc6cd5)
    +
    +    Conflicts:
    +        src/test/rgw/rgw_multi/tests.py
    +    - in squid, lots of testcases such as test_object_lock_sync,
    +      test_bucket_replication* are missing.
     
      ## src/test/rgw/rgw_multi/tests.py ##
    -@@ src/test/rgw/rgw_multi/tests.py: def test_object_lock_sync():
    -     assert(response['ObjectLockConfiguration'] == lock_config)
    +@@ src/test/rgw/rgw_multi/tests.py: import errno
    + import dateutil.parser
    + import re
    + import datetime
    ++import threading
      
    + from itertools import combinations
    + from itertools import zip_longest
    +@@ src/test/rgw/rgw_multi/tests.py: def test_bucket_create_location_constraint():
    +                 except ClientError as e:
    +                     assert e.response['ResponseMetadata']['HTTPStatusCode'] == 400
      
    --    
     +def test_period_update_commit():
     +    wkld_concurrency = 25
     +    num_objects_to_upload = 2500
    @@ src/test/rgw/rgw_multi/tests.py: def test_object_lock_sync():
     +        log.info(f"delete bucket={bucket.name}")
     +        primary_zone_client_conn.s3_client.delete_bucket(Bucket=bucket.name)
     +
    + def test_bucket_full_sync_when_the_bucket_is_deleted_in_the_meantime():
    +     num_objects_to_upload = (
    +         3000  # must be more than 1000 to have pagination at full sync

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 4, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson

Copy link
Copy Markdown
Contributor

@BBoozmen Closed and reopened to clear tests that have hung for weeks, but it looks like there's an actual problem in the QA Links?

@batrick

batrick commented Aug 5, 2026

Copy link
Copy Markdown
Member

@BBoozmen Closed and reopened to clear tests that have hung for weeks, but it looks like there's an actual problem in the QA Links?
it would be fixed by a rebase, ignore it.

@batrick
batrick merged commit 9b37aaf into ceph:squid Aug 5, 2026
15 of 18 checks passed
@batrick batrick modified the milestones: squid, v19.2.6 Aug 5, 2026
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.

5 participants