[ 
https://issues.apache.org/jira/browse/FALCON-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karishma Gulati updated FALCON-710:
-----------------------------------
    Description: 
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}



  was:
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.


> 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
>
> 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)

Reply via email to