[
https://issues.apache.org/jira/browse/FALCON-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163860#comment-14163860
]
Balu Vellanki commented on FALCON-706:
--------------------------------------
In the InstancesResult
{code}
{"status":"SUCCEEDED","message":"default/Running
Instances\n","requestId":"default/229eb101-7b5b-49e8-96ed-804a6cdb8d34\n",
"instances":[
{ "instance":"2014-10-06T01:00Z",
"status":"SUCCEEDED",
"cluster":"primaryCluster",
"startTime":"2014-10-07T13:34:24-07:00",
"endTime":"2014-10-07T13:35:42-07:00"
}
}
{code}
The instance name is UTC-timestamp and should be treated as a String. The
startTime and endTime are the times at which this job started and ended. You
can parse these dates using DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZ".
Re-assigning back to QE
> Parsing json with instances to InstancesResult object failed
> ------------------------------------------------------------
>
> Key: FALCON-706
> URL: https://issues.apache.org/jira/browse/FALCON-706
> Project: Falcon
> Issue Type: Bug
> Components: client
> Affects Versions: 0.5
> Reporter: Ruslan Ostafiychuk
> Assignee: Balu Vellanki
> Fix For: 0.6
>
>
> Due to new behavior ([example from
> documentation|http://falcon.incubator.apache.org/0.4-incubating/docs/restapi/InstanceSuspend.html])
> fields *startDate* and *endDate* of *InstancesResult* can't be converted to
> *Date*.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)