[
https://issues.apache.org/jira/browse/YARN-2336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541403#comment-14541403
]
Akira AJISAKA commented on YARN-2336:
-------------------------------------
Thanks [~ozawa] for reviewing the patch.
bq. We have an option to return empty hash, {}, or array, []. Currently,
"users", another collection field which can be returned in RM's RESTful API,
returns null. In the context, the behaviour of your patch looks consistent to
me.
Returning {} is a good choice, however, consistency is more important for me.
Users may confuse if FairScheduler's REST API is different from other REST APIs.
> Fair scheduler REST api returns a missing '[' bracket JSON for deep queue tree
> ------------------------------------------------------------------------------
>
> Key: YARN-2336
> URL: https://issues.apache.org/jira/browse/YARN-2336
> Project: Hadoop YARN
> Issue Type: Bug
> Components: fairscheduler
> Affects Versions: 2.4.1
> Reporter: Kenji Kikushima
> Assignee: Kenji Kikushima
> Labels: BB2015-05-RFC
> Attachments: YARN-2336-2.patch, YARN-2336-3.patch, YARN-2336-4.patch,
> YARN-2336.005.patch, YARN-2336.patch
>
>
> When we have sub queues in Fair Scheduler, REST api returns a missing '['
> blacket JSON for childQueues.
> This issue found by [~ajisakaa] at YARN-1050.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)