With #5033 in some cases it's possible for the cancellation query to not actually cancel anything (to avoid deadlock while waiting for a response for a prepended query). This is far from an ideal solution and instead we should investigate if we can make the cancellation query to run fully asynchronous (maybe with the help of SingleThreadSynchronizationContext?).
cc @roji
With #5033 in some cases it's possible for the cancellation query to not actually cancel anything (to avoid deadlock while waiting for a response for a prepended query). This is far from an ideal solution and instead we should investigate if we can make the cancellation query to run fully asynchronous (maybe with the help of
SingleThreadSynchronizationContext?).cc @roji