falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruslan Ostafiychuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FALCON-699) Use APIResult and other support classes from falcon-client in falcon-regression
Date Wed, 10 Sep 2014 15:31:34 GMT

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

Ruslan Ostafiychuk updated FALCON-699:
--------------------------------------
    Description: 
Exception with InstancesResult parsing :
{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).

We should use InstancesResult, InstancesSummaryResult, APIResult, EntityList and other classes
from falcon-client directly.

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


> 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
>
>
> Exception with InstancesResult parsing :
> {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).
> We should use InstancesResult, InstancesSummaryResult, APIResult, EntityList and other
classes from falcon-client directly.



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

Mime
View raw message