Feature #20768
open
- Status changed from New to Need More Info
@Марк: The librados C/C++ APIs already have a method to cancel AIO requests (although the request can still be executed on the OSD so there is no guarantee that a successfully canceled op was not executed). What is your use-case that you are trying to achieve?
Use case:
I set up many parallel requests. One of them has been completed. I understand that whole operation should be aborted, so I need to abort all started requests.
Same thing in exception handling code (application exit or some unexpected one). If something goes wrong, everything should be stopped/aborted before continuing as fast as possible. Aborting mean calling something that will prevent async completion callback to fire since abort() has been completed.
Jasson Dillaman, What is the name of this method ? does it work for RBD ?
rados_aio_cancel()
But same for rbd is missing. i.e. there is no rbd_aio_cancel()
Also available in: Atom
PDF