[ 
https://issues.apache.org/jira/browse/DRILL-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683261#comment-16683261
 ] 

ASF GitHub Bot commented on DRILL-5571:
---------------------------------------

kkhatua commented on a change in pull request #1531: DRILL-5571: Cancel running 
query from its Web UI
URL: https://github.com/apache/drill/pull/1531#discussion_r232543607
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/profile/profile.ftl
 ##########
 @@ -171,7 +229,17 @@ table.sortable thead .sorting_desc { background-image: 
url("/static/img/black-de
   <#assign queued = queueName != "" && queueName != "-" />
 
   <div class="page-header"></div>
-  <h3>Query Profile : <span 
style='font-size:85%'>${model.getQueryId()}</span></h3>
+  <h3>Query Profile : <span style='font-size:85%'>${model.getQueryId()}</span>
+  <#if model.getQueryStateDisplayName() == "Running" || 
model.getQueryStateDisplayName() == "Planning">
+  <div id="cancelPopup"  onclick="closePopup()">
+    <div id="cancelText" align="center">Issued cancellation for query<br>Click 
to continue</div>
+  </div>
+  <div  style="display: inline-block;">
+    <button type="button" class="btn btn-warning btn-sm" 
onClick="cancelQuery('${model.queryId}');">
+    <span class="glyphicon glyphicon-remove"></span> Cancel </button>  
 
 Review comment:
   Ok. Dropped the glyphicon and retained the warning (orange) cancellation 
button. I didn't want it to be a standard blue button as this is a query 
termination button.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Unable to cancel running queries from Web UI
> --------------------------------------------
>
>                 Key: DRILL-5571
>                 URL: https://issues.apache.org/jira/browse/DRILL-5571
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - HTTP
>    Affects Versions: 1.11.0
>            Reporter: Kedar Sankar Behera
>            Assignee: Kunal Khatua
>            Priority: Major
>              Labels: javascript, newbie
>             Fix For: 1.15.0
>
>
> We are unable to access profiles of some running queries. Hit the following 
> error on the Web UI:
> {code}
> {
>   “errorMessage” : “VALIDATION ERROR: No profile with given query id 
> ‘26c90b95-928b-15e3-bedc-bfb4a046cc8b’ exists. Please verify the query 
> id.\n\n\n[Error Id: e6896a23-6932-469d-9968-d315fdd06dd4 ]”
> }
> {code}
> And we cannot cancel the running queries whose profile page can be accessed:
> {code}
> Failure attempting to cancel query 26c90b33-cf7e-0495-8f76-55220f71f809.  
> Unable to find information about where query is actively running.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to