CANCEL_SESSION & CREATE_INDEX

40 views
Skip to first unread message

Tom Kalmijn

unread,
Jun 15, 2021, 12:36:38 PM6/15/21
to H2 Database
Hi there,

Quick question just to be sure...

I was looking for a way to cancel a long running 'CREATE INDEX'. 

I tried "CALL CANCEL_SESSION(<id of create index session>)" with no luck. 

The resultset does return True but the running create index query does not stop.

Is this by design?

kind regards,
Tom

Noel Grandin

unread,
Jun 16, 2021, 6:08:46 AM6/16/21
to h2-da...@googlegroups.com, Tom Kalmijn


On 2021/06/15 6:36 pm, Tom Kalmijn wrote:
> I was looking for a way to cancel a long running 'CREATE INDEX'.
>
> I tried "CALL CANCEL_SESSION(<id of create index session>)" with no luck.
>
> The resultset does return True but the running create index query does not stop.

There is currently no support for interrupting a CREATE INDEX operation.

CANCEL_SESSION sets a cancel flag, but unless the operation code checks the flag, it has no effect, and in this case,
CREATE INDEX does not check the flag
Reply all
Reply to author
Forward
0 new messages