Repository navigation
squid: osdc: deliver neorados completions to associated executor - #69744
Conversation
this backport wasn't necessary here because squid doesn't have src/common/async/async_cond.h |
|
@cbodley The Shaman build is failing with this PR. Could you please check? |
|
This PR has been added to wip-yuri2-testing-20260713.172617-squid. |
|
This PR has been removed from wip-yuri2-testing-20260713.172617-squid. |
|
This PR has been added to wip-yuri9-testing-20260720.140823-squid. |
|
This PR has been removed from wip-yuri9-testing-20260720.140823-squid. |
|
This PR has been added to squid integration testing by anuchaithra started 2026-07-29-08:44. |
shaman build creation is failing @cbodley could you please check : https://jenkins.ceph.com/job/ceph-dev-pipeline/7723/consoleFull |
while Objecter delivers librados completions directly by calling Context::complete(), neorados completions are passed in as boost::asio::any_completion_handler and delivered to an asio executor via boost::asio::defer() on completion asio handlers may have an "associated executor" so callers can customize where these completions are delivered. for example, multithreaded applications often use strand executors to synchronize completion handlers and prevent data races between concurrent operations however, applications like radosgw that depend on strands for thread-safety did not get it due to the fact that Objecter's Op::complete() delivered all neorados completions to the default io_context executor use boost::asio::get_associated_executor() to respect the handler's executor affinity, if any. but because the Op's handler is the type-erased any_completion_handler, its associated executor is also type-erased as any_completion_executor. that any_completion_executor doesn't support the blocking::never_t property required by defer/post, so defer() was changed to dispatch() which may call the handler directly if Objecter is already running on the requested executor. i assume this is safe, given that librados' Context-based completions already do this Fixes: https://tracker.ceph.com/issues/76725 Co-Authored-by: Oguzhan Ozmen <[email protected]> Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit aabb5c7)
repurpose ceph_test_neorados_completions to verify that completions are delivered to the handler's associated executor Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit c4d9a40) Conflicts: missing earlier watch-notify changes qa/workunits/rados/test.sh src/test/neorados/CMakeLists.txt src/test/neorados/completions.cc
Fixes: https://tracker.ceph.com/issues/77417 Signed-off-by: Radoslaw Zarzynski <[email protected]> (cherry picked from commit c183e27)
|
New commits were pushed to this PR, so the previous override has been removed. |
|
sorry. rebased and added a fix for this:
|
|
@anrao19 wrt build failures you mentioned at comment-1 and comment-2: The run seeing the failure for https://tracker.ceph.com/issues/78822, out of the 3 PRs included in this QA run, I believe it's this PR causing the build-failure: This PR's cherry-pick hit a conflict in src/test/neorados/CMakeLists.txt and completions.cc (noted in the commit message: Conflicts: missing earlier watch-notify changes), and int the conflict resolution; we seem to have kept the pre-existing add_executable/target_link_libraries block for ceph_test_neorados_completions and in addition appended the new patch's block; I think we should have merged them into one. @cbodley would you mind taking a look? |
|
thanks @BBoozmen - i already pushed an update to address that, but it was buried in audit spam |
|
jenkins test docs |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #69744 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| df8af3b osdc: deliver neorados completions to associated executor | PR #69253 | aabb5c7 osdc: deliver neorados completions to associated executor |
| c32c05a test/neorados: test cross-executor completions | c4d9a40 test/neorados: test cross-executor completions | |
| efc65ca tests/neorados: fix ceph_test_neorados_completions being not installed | PR #69526 | c183e27 tests/neorados: fix ceph_test_neorados_completions being not installed |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
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 c32c05a (cherry-pick of c4d9a40)
Affected File(s)
qa/workunits/rados/test.shsrc/test/neorados/CMakeLists.txtsrc/test/neorados/completions.cc
Range Diff
Click to expand
--- Original (c4d9a406)
+++ Backport (c32c05aa)
@@ -4,3 +4,9 @@
delivered to the handler's associated executor
Signed-off-by: Casey Bodley <[email protected]>
+(cherry picked from commit c4d9a406c8e9ed514067a37574dec88a794acd7c)
+
+Conflicts: missing earlier watch-notify changes
+ qa/workunits/rados/test.sh
+ src/test/neorados/CMakeLists.txt
+ src/test/neorados/completions.cc
================================================================================
RANGE DIFF
================================================================================
1: c4d9a406c8e ! 1: c32c05aacdb test/neorados: test cross-executor completions
@@ Commit message
delivered to the handler's associated executor
Signed-off-by: Casey Bodley <[email protected]>
+ (cherry picked from commit c4d9a406c8e9ed514067a37574dec88a794acd7c)
+
+ Conflicts: missing earlier watch-notify changes
+ qa/workunits/rados/test.sh
+ src/test/neorados/CMakeLists.txt
+ src/test/neorados/completions.cc
## qa/workunits/rados/test.sh ##
-@@ qa/workunits/rados/test.sh: RADOS_TESTS=(
- )
-
- NEORADOS_TESTS=(
-- cls cmd handler_error io ec_io list ec_list misc pool
-+ cls cmd completions handler_error io ec_io list ec_list misc pool
- read_operations snapshots watch_notify write_operations
- )
+@@ qa/workunits/rados/test.sh: do
+ done
+ for f in \
+- cls cmd handler_error io ec_io list ec_list misc pool read_operations snapshots \
++ cls cmd completions handler_error io ec_io list ec_list misc pool read_operations snapshots \
+ watch_notify write_operations
+ do
+ if [ $parallel -eq 1 ]; then
## src/test/neorados/CMakeLists.txt ##
@@ src/test/neorados/CMakeLists.txt: add_executable(ceph_test_neorados_start_stop start_stop.cc)
@@ src/test/neorados/CMakeLists.txt: add_executable(ceph_test_neorados_start_stop s
${unittest_libs})
-add_executable(ceph_test_neorados_completions completions.cc)
--target_link_libraries(ceph_test_neorados_completions Boost::boost pthread
+-target_link_libraries(ceph_test_neorados_completions Boost::system pthread
- ${unittest_libs})
-
add_executable(ceph_test_neorados_op_speed op_speed.cc)
@@ src/test/neorados/CMakeLists.txt: add_library(neoradostest-support STATIC common
## src/test/neorados/completions.cc ##
@@
-#include <boost/asio/io_context.hpp>
--#include <boost/asio/post.hpp>
+#include <optional>
+#include <boost/asio/bind_executor.hpp>
+#include "include/neorados/RADOS.hpp"
@@ src/test/neorados/completions.cc
-void nested_cb() {
- if (++completed < max_completions)
-- boost::asio::post(c, &nested_cb);
+- c.post(&nested_cb);
-}
+ const char* pool_name = "ceph_test_neorados_completions";
+ rados->lookup_pool(pool_name,
@@ src/test/neorados/completions.cc
+ rados->delete_pool(pool->get_pool(), boost::asio::detached);
-int main(void) {
-- boost::asio::post(c, &nested_cb);
+- c.post(&nested_cb);
- c.run();
- assert(completed == max_completions);
- return 0;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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
@cbodley Can you rebase this or something? We keep getting a 'QA Link' failure. |
backport tracker: https://tracker.ceph.com/issues/77273
backport of #69253
parent tracker: https://tracker.ceph.com/issues/76725
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh