[ https://issues.apache.org/jira/browse/LIVY-786 ]
Larry McCay deleted comment on LIVY-786:
----------------------------------
was (Author: lmccay):
Due to the pending 2.0.0 release this JIRA has been pushed out to 2.1.0 as part
of a bulk update. If there is a specific reason to pull this back into the
2.0.0 release and you intend to provide a PR in the next few days please
provide justification and reset the Fix Version to 2.0.0.
> Cancelling statement does not work
> ----------------------------------
>
> Key: LIVY-786
> URL: https://issues.apache.org/jira/browse/LIVY-786
> Project: Livy
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.6.0
> Environment: emr-5.29.0
> Reporter: Quentin Lemaire
> Priority: Blocker
> Fix For: 0.9.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Hi!
> I am running into troubles when trying to cancel a statement during an
> interactive session.
> The code I am running is:
> {code:java}
> Thread.sleep(600000)
> val r = 1 + 1
> {code}
> When I cancel the statement, I see the status of the statement changing to
> "Cancelling" in the Livy UI. After 30s (I left the default timeout), it
> changes to "Cancelled" and I see "Failed to cancel statement 1" in the logs.
> The session is still "Busy" and it finishes to run the code. Therefore, the
> cancellation didn't work and I can even see the result "r: Int = 2" after the
> sleep.
> Do you have any idea why it doesn't manage to cancel the statement (the code
> I am running is pretty basic). I didn't manage to find other information/logs
> on why the cancellation did not work correctly.
> The only solution I found to cancel such a statement is to kill the session.
> Thanks!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)