Repository navigation
librados/asio: forward asio cancellations to AioCompletion::cancel() - #60379
Conversation
05b6626 to
b4eead4
Compare
b4eead4 to
ede956e
Compare
looks like some windows macros are coming from include/compat.h -> include/win32/winsock_compat.h. any suggestions here @petrutlucian94? |
ede956e to
a362947
Compare
60a9a77 to
56d345a
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
56d345a to
75e70e1
Compare
75e70e1 to
3185b11
Compare
I guess the |
thanks @petrutlucian94. the windows check now fails on ceph_test_rados_api_asio, but i don't know how to debug further |
|
|
|
Here's a trace of the test that crashes ( |
3185b11 to
f11d704
Compare
i don't know what to make of this. i've disabled these new tests on windows |
does that mean the download failed? |
There was a problem hiding this comment.
Would it make sense to pass this by value rather than by reference? That way it would be explicit that we are doing a copy. (And they can std::move if they want to avoid it.)
There was a problem hiding this comment.
thanks @adamemerson. there was an intermediate version of this PR that had to stash a copy of the IoCtx in order to call ioctx.aio_cancel(), but the current version relies on the new AioCompletion::cancel() to avoid copies altogether
i do have a related pr #60576 that does need to copy this IoCtx argument when the completion token is deferred or use_awaitable, because their calls to ioctx.aio_operate() may happen in a different scope
and while there are cases like rgw::Aio that do extra work to manage the IoCtx's lifetime, the vast majority of rgw's uses go through rgw_rados_operate() which doesn't - we're either blocking on a synchronous call to ioctx.operate() or suspending a stackful coroutine until librados::async_operate()'s completion, both of which can safely refer to an IoCtx on the stack
so i think it's best for these asio wrappers to leave lifetime management to the callers the same way librados' aio functions do
|
jenkins retest this please |
|
|
jenkins test make check |
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
if the completion handler has a cancellation slot connected, construct a cancellation handler for it that calls AioCompletion::cancel() read operations can support more cancellation types than writes. see the table of cancellation types and their associated requirements/guarantees: https://www.boost.org/doc/libs/1_85_0/doc/html/boost_asio/overview/core/cancellation.html#boost_asio.overview.core.cancellation.t0 Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
6040304 to
ca3cd0e
Compare
|
jenkins test make check |
|
jenkins test api |
|
|
jenkins test make check |
|
jenkins test make check |
commented on https://tracker.ceph.com/issues/43274 |
|
jenkins test make check |
librados::AioCompletion::cancel()callsObjecter::op_cancel()to cancel the operation. this is thread-safe, and does nothing if the op already completedthe asio interfaces in librados/librados_asio.h hook this up to asio's per-op cancellation support
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e