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-699) "startTime" and "endTime" from InstancesResult aren't "Date" now
Date Wed, 10 Sep 2014 14:56:28 GMT

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

Samarth Gupta commented on FALCON-699:
--------------------------------------

since we dont own this class , this should always be in sync with falcon code. Till now we
had copy of this since we were doing development from diff repo. 
If we are having problem parsing the API result , same error should also exists in falcon
client and a bug should be filed for this. 
Will try to test this out tomorrow ... 

> "startTime" and "endTime" from InstancesResult aren't "Date" now
> ----------------------------------------------------------------
>
>                 Key: FALCON-699
>                 URL: https://issues.apache.org/jira/browse/FALCON-699
>             Project: Falcon
>          Issue Type: Bug
>          Components: merlin
>    Affects Versions: 0.5
>            Reporter: Ruslan Ostafiychuk
>            Assignee: Ruslan Ostafiychuk
>            Priority: Critical
>             Fix For: 0.6
>
>         Attachments: FALCON-699.patch
>
>
> Instances json example:
> {code}
> {
>   "status": "SUCCEEDED",
>   "message": "default/STATUS\n",
>   "requestId": "default/3a603aa5-9daa-4d1d-b7e1-8ac656c524d1\n",
>   "instances": [
>     {
>       "instance": "2010-01-02T09:50Z",
>       "status": "SUCCEEDED",
>       "logFile": "http://colo-1.example.com:11000/oozie?job\u003d0000497-140905041548003-oozie-oozi-W",
>       "cluster": "corp-f1321f5d",
>       "startTime": "2014-09-09T06:40:07-07:00",
>       "endTime": "2014-09-09T06:43:51-07:00",
>       "details": ""
>     },
>     {
>       "instance": "2010-01-02T09:55Z",
>       "status": "SUCCEEDED",
>       "logFile": "http://colo-1.example.com:11000/oozie?job\u003d0000499-140905041548003-oozie-oozi-W",
>       "cluster": "corp-f1321f5d",
>       "startTime": "2014-09-09T06:43:52-07:00",
>       "endTime": "2014-09-09T06:47:36-07:00",
>       "details": ""
>     }
>   ]
> }
> {code}
> Exception:
> {code}
> com.google.gson.JsonSyntaxException: 2014-09-09T06:40:07-07:00
> ...
> 	at com.google.gson.Gson.fromJson(Gson.java:755)
> ...
> org.apache.falcon.regression.core.util.InstanceUtil.hitUrl(InstanceUtil.java:189)
> ...
> org.apache.falcon.regression.core.interfaces.IEntityManagerHelper.getProcessInstanceStatus(IEntityManagerHelper.java:378)
> {code}
> At least 2 tests fails because of it (LineageApiProcessInstanceTest).



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

Mime
View raw message