Skip to content

tentacle: rgw/multisite: Fix lifetime issues - #64862

Merged
yuriw merged 6 commits into
ceph:tentaclefrom
adamemerson:wip-71066-tentacle
Sep 16, 2025
Merged

yuriw merged 6 commits into
ceph:tentaclefrom
adamemerson:wip-71066-tentacle

Conversation

@adamemerson

@adamemerson adamemerson commented Aug 6, 2025 •

Copy link
Copy Markdown
Contributor

Original issue: https://tracker.ceph.com/issues/71066
Original issue: https://tracker.ceph.com/issues/72211

Fixes: https://tracker.ceph.com/issues/72450
Fixes: https://tracker.ceph.com/issues/72453

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

@adamemerson adamemerson added this to the tentacle milestone Aug 6, 2025
@adamemerson
adamemerson requested a review from a team as a code owner August 6, 2025 18:08
@adamemerson
adamemerson requested a review from a team August 8, 2025 16:15
@adamemerson

Copy link
Copy Markdown
Contributor Author

Added fix from #64952

@adamemerson

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@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

@ljflores

ljflores commented Sep 4, 2025

Copy link
Copy Markdown
Member

@ljflores

ljflores commented Sep 4, 2025

Copy link
Copy Markdown
Member

@adamemerson please resolve conflicts, and then this PR can be merged.

@yuriw

yuriw commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

@adamemerson pls rebase

adamemerson and others added 6 commits September 8, 2025 20:10
Asynchrony combined with cancellations keeps leading to occasional
lifetime issues, so follow the best-practices of Asio I/O objects by
having completions keep a reference live.

The original NeoRados backing implements Asio's two-phase shutdown
properly.

The RadosClient backing does not, because it shares an Objecter with
completions that do not belong to it. In practice I don't think this
will matter since librados and neorados get shut down around the same
time.

Signed-off-by: Adam C. Emerson <[email protected]>
(cherry picked from commit 57c9723928b4d2b2148ca0dd4d505acdc071f8eb)
Signed-off-by: Adam C. Emerson <[email protected]>
Also run them in strands. Also `datalog_rados` is a `shared_ptr`,
now. Probably make it intrusive later.

Signed-off-by: Adam C. Emerson <[email protected]>
(cherry picked from commit 3c2b587ead6b0cb5acfd84788958dd957d020875)

Conflicts:
	src/rgw/driver/rados/rgw_service.cc
	src/rgw/rgw_sal.cc
 - `#ifdef`s for standalone Rados
	src/rgw/driver/rados/rgw_datalog.cc
 - Periodic re-run of recovery removed in main and pending backport

Signed-off-by: Adam C. Emerson <[email protected]>
Tag operations with a subsystem so we can cancel them all in one go.

Signed-off-by: Adam C. Emerson <[email protected]>
(cherry picked from commit 2526eb573b789b33b7d9ebf1169491f13e2318bb)
Signed-off-by: Adam C. Emerson <[email protected]>
Split nominal handle object and reference-counted
implementation. While we're at it, add lazy-open functionality.

Signed-off-by: Adam C. Emerson <[email protected]>
(cherry picked from commit 3097297dd39432d172d69454419fa83a908075f6)
Signed-off-by: Adam C. Emerson <[email protected]>
This is slightly ugly but good enough for now. Make sure we can block
when shutting down background tasks.

Remove a few `driver` parameters that are unused. This lets us
simplify the IAM Policy and Lua tests and not construct stores we
never use. (Which is good since we aren't running them under a cluster.)

Signed-off-by: Adam C. Emerson <[email protected]>
(cherry picked from commit 3def99eec5df353a0fb34be79d9e98a08eb05985)

Conflicts:
	src/rgw/driver/rados/rgw_service.cc
	src/rgw/rgw_sal.h
	src/rgw/rgw_sal.cc
 - `#ifdef` changes
	src/test/rgw/test_rgw_iam_policy.cc
	src/test/rgw/test_rgw_lua.cc
 - SAL renaming

Signed-off-by: Adam C. Emerson <[email protected]>
ceph@a2d2664

ftbfs:
```
/home/jenkins-build/build/workspace/ceph-pull-requests/src/neorados/cls/fifo/detail/fifo.h:630:14: error: no member named 'parse' in namespace 'ceph'; did you mean 'pause'?
  630 |     auto n = ceph::parse<decltype(m.num)>(num);
      |              ^~~~~~~~~~~
```

Signed-off-by: Matan Breizman <[email protected]>
(cherry picked from commit 3df1133)
Signed-off-by: Adam C. Emerson <[email protected]>
@adamemerson

Copy link
Copy Markdown
Contributor Author

@cbodley Could I get an approval, please?

@adamemerson

Copy link
Copy Markdown
Contributor Author

@yuriw Rebased

@yuriw
yuriw merged commit 96dd5f5 into ceph:tentacle Sep 16, 2025
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.

6 participants