Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 43BF69279 for ; Tue, 3 Apr 2012 09:36:51 +0000 (UTC) Received: (qmail 64314 invoked by uid 500); 3 Apr 2012 09:36:51 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 64261 invoked by uid 500); 3 Apr 2012 09:36:50 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 64244 invoked by uid 99); 3 Apr 2012 09:36:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 09:36:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 09:36:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2DED0355D0A for ; Tue, 3 Apr 2012 09:36:28 +0000 (UTC) Date: Tue, 3 Apr 2012 09:36:28 +0000 (UTC) From: "Bhallamudi Venkata Siva Kamesh (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1651019401.5391.1333445788321.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <858012716.25301.1331916220936.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4024) RM webservices can't query on finalStatus MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-4024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245090#comment-13245090 ] Bhallamudi Venkata Siva Kamesh commented on MAPREDUCE-4024: ----------------------------------------------------------- I don't know whether I can comment here or not (as the jira has already been closed), but here is my observation from the patch {code:title=RMWebServices.java|borderStyle=solid} if (finalStatusQuery != null && !finalStatusQuery.isEmpty()) { FinalApplicationStatus.valueOf(finalStatusQuery); if (!rmapp.getFinalApplicationStatus().toString() .equalsIgnoreCase(finalStatusQuery)) { continue; } } {code} >From the above code, I think the following statement {noformat}FinalApplicationStatus.valueOf(finalStatusQuery);{noformat} validates whether a given string is one of the FinalApplicationStatus's enum types.If the enum type is in uppercase and user has given the same enum type in lowercase, this statement throws *IllegalArgumentException*. However, in the next statement we are comparing strings using *equalIgnoreCase*, so from this, I *assume* that, finalStatusQuery can also be given in a lowercase. But it won't work. Please ignore this comment, if my observation is wrong. > RM webservices can't query on finalStatus > ----------------------------------------- > > Key: MAPREDUCE-4024 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4024 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 0.23.2 > Reporter: Thomas Graves > Assignee: Thomas Graves > Fix For: 0.23.3 > > Attachments: MAPREDUCE-4024.patch > > > The resource manager web service api to get the list of apps doesn't have a query parameter for finalStatus. It has one for the state but since that isn't what is reported by app master so we really need to be able to query on both state and finalStatus. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira