mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Race condition in per-operation cancellation in connection/any_connection

Open anarthal opened this issue 1 year ago • 0 comments

This is a rare case of a race condition that can happen during the execution of any connection function. If the cancellation signal is emitted while the current async op is complete, but the handler hasn't been called yet (is queued), the cancellation has no effect and the operation continues.

This can be fixed by checking the composed op's cancellation state in async_run_algo_impl.

anarthal avatar Dec 20 '23 13:12 anarthal