[
https://issues.apache.org/jira/browse/LENS-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272105#comment-15272105
]
Puneet Gupta commented on LENS-1032:
------------------------------------
1. Adding a query level parameter (lens.query.kill.on.timeout) to decide if
kill is enabled for this query. Default value of this property will be false.
2. What should be returned from rest api in case we initiate the kill?
bq.Option A. We can return the handle (existing behaviour). Lets not
make the caller wait for kill to go thorugh. We can inititae a silent kill in
the background. This implies we have a separate thread taking care of this
operation
bq.Option B. We can initiate the kill in same thread . This means that
the caller will wait until the kill goes thorugh and also get the initamation
of the kill status
I feel option A will be better since we should honor the timeout/wait
> Add option to kill the query on timeout api on timeout
> ------------------------------------------------------
>
> Key: LENS-1032
> URL: https://issues.apache.org/jira/browse/LENS-1032
> Project: Apache Lens
> Issue Type: Improvement
> Reporter: Puneet Gupta
>
> Right now, on execute with timeout api, if the query times out, then query
> will be still running for people to pull reports.
> We should provide option to kill the query upon timeout for users who are not
> interested in result beyond timeout.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)