Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A28FF17B8C for ; Mon, 10 Nov 2014 18:35:16 +0000 (UTC) Received: (qmail 21394 invoked by uid 500); 10 Nov 2014 18:35:11 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 21353 invoked by uid 500); 10 Nov 2014 18:35:11 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 21342 invoked by uid 99); 10 Nov 2014 18:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 18:35:11 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Nov 2014 18:35:09 +0000 Received: (qmail 19790 invoked by uid 99); 10 Nov 2014 18:33:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 18:33:34 +0000 Date: Mon, 10 Nov 2014 18:33:34 +0000 (UTC) From: "Raghav Kumar Gautam (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FALCON-725) Falcon startup should fail in non utc environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14205127#comment-14205127 ] Raghav Kumar Gautam edited comment on FALCON-725 at 11/10/14 6:33 PM: ---------------------------------------------------------------------- on linux this should suffice: export TZ=UTC falcon/bin/falcon-start was (Author: raghavgautam): on linux this should suffice: export TZ=UTC falcon/bin/falcon-start.sh > 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 > 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)