You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Ruslan Ostafiychuk (JIRA)" <ji...@apache.org> on 2014/09/10 17:28:33 UTC

[jira] [Updated] (FALCON-699) Use APIResult and other support classes from falcon-client in falcon-regression

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

Ruslan Ostafiychuk updated FALCON-699:
--------------------------------------
    Summary: Use APIResult and other support classes from falcon-client in falcon-regression  (was: "startTime" and "endTime" from InstancesResult aren't "Date" now)

> Use APIResult and other support classes from falcon-client in falcon-regression
> -------------------------------------------------------------------------------
>
>                 Key: FALCON-699
>                 URL: https://issues.apache.org/jira/browse/FALCON-699
>             Project: Falcon
>          Issue Type: Improvement
>          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)