falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Gupta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-710) As per the latest behaviour of instance request, default values of start/end apply to APIs like kill and suspend as well
Date Tue, 16 Sep 2014 04:22:34 GMT

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

Samarth Gupta commented on FALCON-710:
--------------------------------------

how many instances can be passed as part of suggest instance param ?  if it is only one ,
then it will become very difficult when someone wants to perform operations on multiple instance.

even if we can pass multiple instance it will be a unnecessary tedious job of first finding
the exact instance time of all the instance and then write them as params. 
If we are planning to supply only one instance it will be same as giving only the startTime
param in the behaviour before FALCON-166. In addition that has options of range queries by
giving end time.  

is there a particular reason [~bvellanki]  we dont want to support time window on suspend/kill/resume
?


> As per the latest behaviour of instance request, default values of start/end apply to
APIs like kill and suspend as well
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FALCON-710
>                 URL: https://issues.apache.org/jira/browse/FALCON-710
>             Project: Falcon
>          Issue Type: Bug
>          Components: merlin
>         Environment: QA
>            Reporter: Karishma Gulati
>            Assignee: Balu Vellanki
>
> Given the latest change made in the default behaviour of instance request. the default
values of start and end should be applicable only when getting the status of instances, and
not for APIs like kill and suspend as well. 
> For eg, if the instances of a process created are from the past, and a suspend/kill request
is made without specifying the start and end, all instances of that process are suspended/killed.
> For process validity : start - 2010-01-02T01:00Z and end - 2010-01-02T01:26Z, the URL

> {code}
>  Request Url: http://192.168.138.137:16000/api/instance/kill/process/agregator-coord16-3ca03cba/?colo=*&user.name=karishma
> {code}
> returns the following response
> {code}
> {
>   "status": "SUCCEEDED",
>   "message": "ua1/KILL\n",
>   "requestId": "ua1/09285aae-f571-408c-a8f4-989cba9cbd19\n",
>   "instances": [
>     {
>       "instance": "2010-01-02T01:25Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000894-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:30Z",
>       "endTime": "2014-09-11T09:29:49Z",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:20Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000892-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:28Z",
>       "endTime": "2014-09-11T09:29:50Z",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:15Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000890-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:26Z",
>       "endTime": "2014-09-11T09:29:52Z",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:10Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000888-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:25Z",
>       "endTime": "2014-09-11T09:29:53Z",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:05Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000886-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:24Z",
>       "endTime": "2014-09-11T09:29:56Z",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:00Z",
>       "status": "KILLED",
>       "logFile": "http://ip-192-168-138-137:11000/oozie?job\u003d0000884-140828065226481-oozie-oozi-W",
>       "cluster": "corp-953ec81e",
>       "startTime": "2014-09-11T09:29:24Z",
>       "endTime": "2014-09-11T09:29:58Z",
>       "details": ""
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message