Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4380019552 for ; Wed, 9 Mar 2016 22:39:41 +0000 (UTC) Received: (qmail 45850 invoked by uid 500); 9 Mar 2016 22:39:41 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 45789 invoked by uid 500); 9 Mar 2016 22:39:41 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 45719 invoked by uid 99); 9 Mar 2016 22:39:41 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2016 22:39:41 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C1DF62C1F64 for ; Wed, 9 Mar 2016 22:39:40 +0000 (UTC) Date: Wed, 9 Mar 2016 22:39:40 +0000 (UTC) From: "Jayesh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-4785) inconsistent value type of the "type" field for LeafQueueInfo in response of RM REST API - cluster/scheduler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-4785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jayesh updated YARN-4785: ------------------------- Description: 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} was: Inconsistent type field value type in JSON response of the cluster/scheduler 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} > 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)