-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-23441 Sql. Cancellation of script execution #4706
base: main
Are you sure you want to change the base?
Conversation
3e323aa
to
c942ddd
Compare
This reverts commit 1f0cfcf.
@@ -543,7 +543,7 @@ public int openedCursors() { | |||
} | |||
|
|||
return (int) executor.runningQueries().stream() | |||
.filter(info -> info.phase() == ExecutionPhase.EXECUTING) | |||
.filter(info -> info.phase() == ExecutionPhase.EXECUTING && !info.script()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not quite correct - the script itself does not open the cursor
...engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItCancelQueryTest.java
Outdated
Show resolved
Hide resolved
...ine/src/integrationTest/java/org/apache/ignite/internal/sql/api/ItSqlSynchronousApiTest.java
Outdated
Show resolved
Hide resolved
...ql-engine/src/testFixtures/java/org/apache/ignite/internal/sql/engine/util/SqlTestUtils.java
Outdated
Show resolved
Hide resolved
...ql-engine/src/testFixtures/java/org/apache/ignite/internal/sql/engine/util/SqlTestUtils.java
Outdated
Show resolved
Hide resolved
...ql-engine/src/testFixtures/java/org/apache/ignite/internal/sql/engine/util/SqlTestUtils.java
Show resolved
Hide resolved
...-engine/src/main/java/org/apache/ignite/internal/sql/engine/tx/ScriptTransactionContext.java
Outdated
Show resolved
Hide resolved
@@ -202,14 +202,16 @@ CompletableFuture<AsyncSqlCursor<InternalSqlRow>> executeChildQuery( | |||
} | |||
|
|||
try { | |||
trackQuery(query, null); | |||
trackQuery(query, parent.cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems we need not register additional cancel actions for childs ? i.e. we need different trackQuery implementation without "addCancelAction" actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Reverted this change.
From my point of view, it is enough to pass null for the child query.
https://issues.apache.org/jira/browse/IGNITE-23441