You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Konstantin Orlov (Jira)" <ji...@apache.org> on 2026/04/02 07:32:00 UTC

[jira] [Updated] (IGNITE-28406) Rework ItSqlApiBaseTest.cancelDdlScript and make it more reliable

     [ https://issues.apache.org/jira/browse/IGNITE-28406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Orlov updated IGNITE-28406:
--------------------------------------
    Fix Version/s: 3.2

> Rework ItSqlApiBaseTest.cancelDdlScript and make it more reliable
> -----------------------------------------------------------------
>
>                 Key: IGNITE-28406
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28406
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql ai3
>            Reporter: Ilya Korol
>            Assignee: Ilya Korol
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain
>             Fix For: 3.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Currently cancelDdlScript() is based on polling checks approach which sometimes can fail.
>  
> {code:java}
> CompletableFuture<Void> scriptFut = IgniteTestUtils.runAsync(() -> executeScript(sql, token, script));
> waitUntilRunningQueriesCount(greaterThan(0));
> cancelHandle.cancel();
> expectQueryCancelled(() -> await(scriptFut)); {code}
>  # script execution can complete even before {{waitUntilRunningQueriesCount(greaterThan(0))}} check, so we won't have anything to cancel.
>  # script execution can complete after {{waitUntilRunningQueriesCount(greaterThan(0)), but before}} {{{}cancelHandle.cancel(){}}}, so we won't have anything to cancel as well.
>  
>  



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