falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghav Kumar Gautam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FALCON-725) Falcon startup should fail in non utc environment
Date Mon, 15 Sep 2014 22:34:37 GMT

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

Raghav Kumar Gautam updated FALCON-725:
---------------------------------------
    Description: 
A working falcon instance assumes UTC timezone, but the server starts in non UTC environment.
We would expect server start to fail if this assumption is not met.

Sample response in UTC scenario:
{code}
2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Request
Url: http://ip-172-31-39-155.ec2.internal:15443/api/instance/status/process/agregator-coord16-058b6943/?start=2010-01-02T01%3A00Z&colo=*&user.name=hrt_qa
(BaseRequest:125)
2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Request
Method: GET (BaseRequest:126)
2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Request
Header: Name=Cookie Value=hadoop.auth=u=hrt_qa&p=hrt_qa@HWQE.HORTONWORKS.COM&t=kerberos&e=1410797963661&s=zGcYvsnBiTq77RD5q1vbIcdYb/A=
(BaseRequest:129)
2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Response
Status: HTTP/1.1 200 OK (BaseRequest:155)
2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Content-Type Value=application/json (BaseRequest:157)
2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Transfer-Encoding Value=chunked (BaseRequest:157)
2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Server Value=Jetty(6.1.26) (BaseRequest:157)
2014-09-15 08:23:51,630 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~ The web
service response is:
{
  "status": "SUCCEEDED",
  "message": "default/STATUS\n",
  "requestId": "default/c7593976-9d63-47ec-adaf-3850b376bbc7\n",
  "instances": [
    {
      "instance": "2010-01-02T01:25Z",
      "status": "WAITING",
      "cluster": "corp-5d9185c8",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:20Z",
      "status": "WAITING",
      "cluster": "corp-5d9185c8",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:15Z",
      "status": "WAITING",
      "cluster": "corp-5d9185c8",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:10Z",
      "status": "WAITING",
      "cluster": "corp-5d9185c8",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:05Z",
      "status": "WAITING",
      "cluster": "corp-5d9185c8",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:00Z",
      "status": "RUNNING",
      "logFile": "http://ip-172-31-39-155.ec2.internal:11000/oozie?job\u003d0000581-140915032147636-oozie-oozi-W",
      "cluster": "corp-5d9185c8",
      "startTime": "2014-09-15T08:23:08Z",
      "details": ""
    }
  ]
} (InstanceUtil:111)
{code}

Sample response in non-UTC scenario:
{code}
2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Request
Url: http://ip-172-31-34-165.ec2.internal:15443/api/instance/suspend/process/agregator-coord16-ce2fdd11/?start=2010-01-02T01%3A00Z&colo=*&user.name=hrt_qa
(BaseRequest:125)
2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Request
Method: POST (BaseRequest:126)
2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Request
Header: Name=Cookie Value=hadoop.auth=u=hrt_qa&p=hrt_qa&t=simple&e=1410704894451&s=AC77CnJQ24w39I5a38z80xhMgi8=
(BaseRequest:129)
2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Response
Status: HTTP/1.1 200 OK (BaseRequest:155)
2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Content-Type Value=application/json (BaseRequest:157)
2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Transfer-Encoding Value=chunked (BaseRequest:157)
2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ Response
Header: Name=Server Value=Jetty(6.1.26) (BaseRequest:157)
2014-09-14 05:24:24,520 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~ The web
service response is:
{
  "status": "SUCCEEDED",
  "message": "default/SUSPEND\n",
  "requestId": "default/dcdd148f-96fd-4fbe-a526-19e1526bbb5c\n",
  "instances": [
    {
      "instance": "2010-01-02T01:25Z",
      "status": "WAITING",
      "cluster": "corp-43464275",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:20Z",
      "status": "WAITING",
      "cluster": "corp-43464275",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:15Z",
      "status": "WAITING",
      "cluster": "corp-43464275",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:10Z",
      "status": "WAITING",
      "cluster": "corp-43464275",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:05Z",
      "status": "WAITING",
      "cluster": "corp-43464275",
      "details": ""
    },
    {
      "instance": "2010-01-02T01:00Z",
      "status": "SUSPENDED",
      "logFile": "http://ip-172-31-34-165.ec2.internal:11000/oozie?job\u003d0001480-140914000314873-oozie-oozi-W",
      "cluster": "corp-43464275",
      "startTime": "2014-09-14T05:24:02-04:00",
      "details": ""
    }
  ]
} (InstanceUtil:111)
{code}

  was:A working falcon instance assumes UTC timezone, but the server starts in non UTC environment.
We would expect server start to fail if this assumption is not met.


> Falcon startup should fail in non utc environment
> -------------------------------------------------
>
>                 Key: FALCON-725
>                 URL: https://issues.apache.org/jira/browse/FALCON-725
>             Project: Falcon
>          Issue Type: Bug
>    Affects Versions: 0.4, 0.3, 0.5, 0.6
>            Reporter: Raghav Kumar Gautam
>            Priority: Blocker
>             Fix For: 0.6
>
>
> A working falcon instance assumes UTC timezone, but the server starts in non UTC environment.
We would expect server start to fail if this assumption is not met.
> Sample response in UTC scenario:
> {code}
> 2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Request Url: http://ip-172-31-39-155.ec2.internal:15443/api/instance/status/process/agregator-coord16-058b6943/?start=2010-01-02T01%3A00Z&colo=*&user.name=hrt_qa
(BaseRequest:125)
> 2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Request Method: GET (BaseRequest:126)
> 2014-09-15 08:23:51,079 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Request Header: Name=Cookie Value=hadoop.auth=u=hrt_qa&p=hrt_qa@HWQE.HORTONWORKS.COM&t=kerberos&e=1410797963661&s=zGcYvsnBiTq77RD5q1vbIcdYb/A=
(BaseRequest:129)
> 2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Response Status: HTTP/1.1 200 OK (BaseRequest:155)
> 2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Content-Type Value=application/json (BaseRequest:157)
> 2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:157)
> 2014-09-15 08:23:51,629 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Server Value=Jetty(6.1.26) (BaseRequest:157)
> 2014-09-15 08:23:51,630 INFO  - [pool-20-thread-1:testProcessInstanceResumeSingle] ~
The web service response is:
> {
>   "status": "SUCCEEDED",
>   "message": "default/STATUS\n",
>   "requestId": "default/c7593976-9d63-47ec-adaf-3850b376bbc7\n",
>   "instances": [
>     {
>       "instance": "2010-01-02T01:25Z",
>       "status": "WAITING",
>       "cluster": "corp-5d9185c8",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:20Z",
>       "status": "WAITING",
>       "cluster": "corp-5d9185c8",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:15Z",
>       "status": "WAITING",
>       "cluster": "corp-5d9185c8",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:10Z",
>       "status": "WAITING",
>       "cluster": "corp-5d9185c8",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:05Z",
>       "status": "WAITING",
>       "cluster": "corp-5d9185c8",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:00Z",
>       "status": "RUNNING",
>       "logFile": "http://ip-172-31-39-155.ec2.internal:11000/oozie?job\u003d0000581-140915032147636-oozie-oozi-W",
>       "cluster": "corp-5d9185c8",
>       "startTime": "2014-09-15T08:23:08Z",
>       "details": ""
>     }
>   ]
> } (InstanceUtil:111)
> {code}
> Sample response in non-UTC scenario:
> {code}
> 2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Request Url: http://ip-172-31-34-165.ec2.internal:15443/api/instance/suspend/process/agregator-coord16-ce2fdd11/?start=2010-01-02T01%3A00Z&colo=*&user.name=hrt_qa
(BaseRequest:125)
> 2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Request Method: POST (BaseRequest:126)
> 2014-09-14 05:24:24,325 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Request Header: Name=Cookie Value=hadoop.auth=u=hrt_qa&p=hrt_qa&t=simple&e=1410704894451&s=AC77CnJQ24w39I5a38z80xhMgi8=
(BaseRequest:129)
> 2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Response Status: HTTP/1.1 200 OK (BaseRequest:155)
> 2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Content-Type Value=application/json (BaseRequest:157)
> 2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:157)
> 2014-09-14 05:24:24,519 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
Response Header: Name=Server Value=Jetty(6.1.26) (BaseRequest:157)
> 2014-09-14 05:24:24,520 INFO  - [pool-45-thread-1:testProcessInstanceResumeSingle] ~
The web service response is:
> {
>   "status": "SUCCEEDED",
>   "message": "default/SUSPEND\n",
>   "requestId": "default/dcdd148f-96fd-4fbe-a526-19e1526bbb5c\n",
>   "instances": [
>     {
>       "instance": "2010-01-02T01:25Z",
>       "status": "WAITING",
>       "cluster": "corp-43464275",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:20Z",
>       "status": "WAITING",
>       "cluster": "corp-43464275",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:15Z",
>       "status": "WAITING",
>       "cluster": "corp-43464275",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:10Z",
>       "status": "WAITING",
>       "cluster": "corp-43464275",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:05Z",
>       "status": "WAITING",
>       "cluster": "corp-43464275",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T01:00Z",
>       "status": "SUSPENDED",
>       "logFile": "http://ip-172-31-34-165.ec2.internal:11000/oozie?job\u003d0001480-140914000314873-oozie-oozi-W",
>       "cluster": "corp-43464275",
>       "startTime": "2014-09-14T05:24:02-04:00",
>       "details": ""
>     }
>   ]
> } (InstanceUtil:111)
> {code}



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

Mime
View raw message