Skip to content

rgw/rados: fix init/shutdown order for RGWIndexCompletionManager - #66487

Merged
cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-74067
Dec 4, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-74067

Conversation

@cbodley

@cbodley cbodley commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

RGWRados::init_complete() initializes this RGWIndexCompletionManager after starting some background threads that depend on it, like RGWLC and RGWDataSyncProcessorThread and RGWObjectExpirer. this can lead to a crash when accessing a null index_completion_manager

RGWRados::finalize() deletes it before stopping the Restore thread

Fixes: https://tracker.ceph.com/issues/74067

Reported-by: @ivancich

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

RGWRados::init_complete() initializes this RGWIndexCompletionManager
after starting some background threads that depend on it, like RGWLC and
RGWDataSyncProcessorThread and RGWObjectExpirer. this can lead to a
crash when accessing a null index_completion_manager

RGWRados::finalize() deletes it before stopping the Restore thread

Fixes: https://tracker.ceph.com/issues/74067

Reported-by: J. Eric Ivancich <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>

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

looks sound to me

@cbodley
cbodley merged commit 8c63cad into ceph:main Dec 4, 2025
@cbodley
cbodley deleted the wip-74067 branch December 4, 2025 21:47
soumyakoduri added a commit to soumyakoduri/ceph that referenced this pull request Aug 8, 2026
Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
rely on.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit cf99589)

Conflicts:
        src/rgw/driver/rados/rgw_rados.cc

This file had conflict as another commit(ceph#66487) which made changes to the same
RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.
soumyakoduri added a commit to soumyakoduri/ceph that referenced this pull request Aug 12, 2026
Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
rely on.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit cf99589)

Conflicts:
        src/rgw/driver/rados/rgw_rados.cc

This file had conflict as another commit(ceph#66487) which made changes to the same
RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.
soumyakoduri added a commit to soumyakoduri/ceph that referenced this pull request Aug 19, 2026
Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
rely on.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit cf99589)

Conflicts:
        src/rgw/driver/rados/rgw_rados.cc

This file had conflict as another commit(ceph#66487) which made changes to the same
RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.
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.

4 participants