Repository navigation
crimson: drop duplicated PluginRegistry and util.cc from crimson archives - #71760
Conversation
e098237 to
9c644d3
Compare
|
@Matan-B hi Matan, could you take another look when you have time? I replied to your question about #ifndef WITH_CRIMSON in the thread. In short, after this change nothing in crimson references PluginRegistry, so there's nothing left to guard. |
|
|
@ronen-fr hey Ronen, thanks for looking into it. not sure what the FTBFS was, but i am trying to fix one build failure in #72660 . probably you are interested in reviewing it as well? |
|
Hi, @tchaikov . LGTM. |
|
|
||
| std::optional<ceph::bufferlist> TxHandler::compress(const ceph::bufferlist&) | ||
| { | ||
| ceph_abort(); |
There was a problem hiding this comment.
Here (and the two below): suggest ceph_abort_msg() with a meaningful message
@ronen-fr hi Ronen, addressed both in the latest revision. |
unittest-collection-manager and unittest-object-data-handler fail to link with mold: mold: error: duplicate symbol: lib/libcrimson-alienstore.a(PluginRegistry.cc.o): lib/libcrimson-common.a(PluginRegistry.cc.o): ceph::PluginRegistry::~PluginRegistry() PluginRegistry.cc is compiled into both archives, once with WITH_CRIMSON and once without, so they define two different classes under the same name, an ODR violation. crimson only has its copy because frames_v2.cc calls the on-wire compression handlers, which pull in Compressor and the plugin registry. But crimson never advertises msgr2 compression, so it never creates a handler. Replace compression_onwire.cc with a stub of the three handler methods frames_v2.cc calls, which abort if reached. Compressor.cc, PluginRegistry.cc and the unused get_plugin_registry() can then go from crimson. Loading compressor plugins in crimson would need them built against crimson's CephContext, which can wait until crimson needs compression. Signed-off-by: Kefu Chai <[email protected]>
Both crimson-alienstore and crimson-common compile common/util.cc, but no alien code calls anything in it. Only crimson-common's copy is used, by OSD::_send_boot(). Nothing pulls the alien copy into a binary yet, but once something does, mold will reject the duplicates. Signed-off-by: Kefu Chai <[email protected]>
Since 6dd4b1e, both crimson-common and crimson-alienstore define DebugLevelGuard::check(). Nothing in it depends on WITH_CRIMSON, so the two copies are identical. Let the alien store use the one in crimson-common, as it already does for ceph::buffer and friends. crimson-alienstore does not list crimson-common in its link libraries, and links only because its users put crimson after it. Add it as a link-only interface dependency, so CMake orders it for every user. A regular dependency would also pass crimson-common's WITH_CRIMSON to the alien sources, which must be built without it. Signed-off-by: Kefu Chai <[email protected]>
e552441 added this flag so crimson-osd could link with mold despite the symbols both crimson-alienstore and crimson-common define. They no longer share any, and the flag would only hide the next duplicate, so drop it along with the comments describing the workaround. Signed-off-by: Kefu Chai <[email protected]>
9c644d3 to
1280d1b
Compare
PR=wip-perezjos-crimson-only-15-10-2026-PR71760
$ teuthology-suite -s crimson-rados -p 101 --force-priority -c $PR -f debug --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-10-19 09:02:34,619.619 INFO:teuthology.suite.run:Test results viewable at
Jobs Tracker |
@perezjosibm hi Jose, thank you for testing this change. and sure! just took a look. the segfault was not caused by my change. created a fix for it. see #72962 |
|
@perezjosibm hey Jose, is this change good to merge or we'd prefer testing it again, along with #72962 after the latter is approved? |
|
Thanks for looking into the (unreleated) failure and fixing it. Merging |
with mold,
unittest-collection-managerandunittest-object-data-handlerfail to link:so we either replace the unused bits with a stub, or just drop them.
tested with mold: both tests above and
unittest-seastar-messengerpass, andcrimson-store-nbd,crimson-objectstore-toolandcrimson-store-benchlink.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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.