You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Roman Puchkovskiy (Jira)" <ji...@apache.org> on 2023/04/04 10:00:00 UTC

[jira] [Created] (IGNITE-19200) DistributedQueryManager#close() fails to complete cancellation future

Roman Puchkovskiy created IGNITE-19200:
------------------------------------------

             Summary: DistributedQueryManager#close() fails to complete cancellation future
                 Key: IGNITE-19200
                 URL: https://issues.apache.org/jira/browse/IGNITE-19200
             Project: Ignite
          Issue Type: Bug
            Reporter: Roman Puchkovskiy


var finalStepFut = compoundCancelFut.thenRun(() -> {
    queryManagerMap.remove(ctx.queryId());

    try {
        ctx.cancel().cancel();
    } catch (Exception ex) {
        // NO-OP
    }

    cancelFut.complete(null);
});

The step above must be executed after compoundCancelFut is completed regardless of whether the completion is normal or exceptional; instead, the current code only executes this code on normal completion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)