You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Varun Vasudev (JIRA)" <ji...@apache.org> on 2016/03/10 17:05:40 UTC
[jira] [Comment Edited] (YARN-4785) inconsistent value type of the
"type" field for LeafQueueInfo in response of RM REST API -
cluster/scheduler
[ https://issues.apache.org/jira/browse/YARN-4785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15189474#comment-15189474 ]
Varun Vasudev edited comment on YARN-4785 at 3/10/16 4:05 PM:
--------------------------------------------------------------
[~jhsenjaliya] - is this reproducable on your end? I'm unable to produce this on my laptop. The "type" field is actually injected by JAXB and isn't a field we generate.
was (Author: vvasudev):
[~jhsenjaliya] - is this reproducable on your end? I'm unable to produce this on your end. The "type" field is actually injected by JAXB and isn't a field we generate.
> inconsistent value type of the "type" field for LeafQueueInfo in response of RM REST API - cluster/scheduler
> ------------------------------------------------------------------------------------------------------------
>
> Key: YARN-4785
> URL: https://issues.apache.org/jira/browse/YARN-4785
> Project: Hadoop YARN
> Issue Type: Bug
> Components: webapp
> Affects Versions: 2.6.0
> Reporter: Jayesh
> Labels: REST_API
>
> I see inconsistent value type ( String and Array ) of the "type" field for LeafQueueInfo in response of RM REST API - cluster/scheduler
> as per the spec it should be always String.
> here is the sample output ( removed non-relevant fields )
> {code}
> {
> "scheduler": {
> "schedulerInfo": {
> "type": "capacityScheduler",
> "capacity": 100,
> ...
> "queueName": "root",
> "queues": {
> "queue": [
> {
> "type": "capacitySchedulerLeafQueueInfo",
> "capacity": 0.1,
> ....
> },
> {
> "type": [
> "capacitySchedulerLeafQueueInfo"
> ],
> "capacity": 0.1,
> "queueName": "test-queue",
> "state": "RUNNING",
> ....
> },
> {
> "type": [
> "capacitySchedulerLeafQueueInfo"
> ],
> "capacity": 2.5,
> ....
> },
> {
> "capacity": 25,
> ....
> "state": "RUNNING",
> "queues": {
> "queue": [
> {
> "capacity": 6,
> "state": "RUNNING",
> "queues": {
> "queue": [
> {
> "type": "capacitySchedulerLeafQueueInfo",
> "capacity": 100,
> ...
> }
> ]
> },
> ....
> },
> {
> "capacity": 6,
> ...
> "state": "RUNNING",
> "queues": {
> "queue": [
> {
> "type": "capacitySchedulerLeafQueueInfo",
> "capacity": 100,
> ...
> }
> ]
> },
> ...
> },
> ...
> ]
> },
> ...
> }
> ]
> }
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)