You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2019/03/21 20:54:49 UTC

[incubator-druid] branch master updated: fix Supervisor terminate call (#7315)

This is an automated email from the ASF dual-hosted git repository.

cwylie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 375668e  fix Supervisor terminate call (#7315)
375668e is described below

commit 375668ef454e53b1e9df0a245ea1f6e92a447298
Author: Vadim Ogievetsky <va...@gmail.com>
AuthorDate: Thu Mar 21 13:54:43 2019 -0700

    fix Supervisor terminate call (#7315)
    
    * fix Supervisor terminate call
    
    * fix refresh after submitting supervisor or task
---
 web-console/src/views/tasks-view.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web-console/src/views/tasks-view.tsx b/web-console/src/views/tasks-view.tsx
index 02fd615..5417da8 100644
--- a/web-console/src/views/tasks-view.tsx
+++ b/web-console/src/views/tasks-view.tsx
@@ -179,7 +179,7 @@ ORDER BY "rank" DESC, "created_time" DESC`);
     this.taskQueryManager.terminate();
   }
 
-  private async submitSupervisor(spec: JSON) {
+  private submitSupervisor = async (spec: JSON) => {
     try {
       await axios.post('/druid/indexer/v1/supervisor', spec);
     } catch (e) {
@@ -197,7 +197,7 @@ ORDER BY "rank" DESC, "created_time" DESC`);
     this.supervisorQueryManager.rerunLastQuery();
   }
 
-  private async submitTask(spec: JSON) {
+  private submitTask = async (spec: JSON) => {
     try {
       await axios.post('/druid/indexer/v1/task', spec);
     } catch (e) {
@@ -296,7 +296,7 @@ ORDER BY "rank" DESC, "created_time" DESC`);
     return <AsyncActionDialog
       action={
         terminateSupervisorId ? async () => {
-          const resp = await axios.post(`/druid/indexer/v1/supervisor/${terminateSupervisorId}/reset`, {});
+          const resp = await axios.post(`/druid/indexer/v1/supervisor/${terminateSupervisorId}/terminate`, {});
           return resp.data;
         } : null
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org