hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1479) Invalid NaN values in Hadoop REST API JSON response
Date Mon, 03 Feb 2014 21:37:06 GMT

    [ https://issues.apache.org/jira/browse/YARN-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889944#comment-13889944
] 

Hadoop QA commented on YARN-1479:
---------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12626738/Yarn-1479v2.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 2 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version
1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-YARN-Build/2994//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/2994//console

This message is automatically generated.

> Invalid NaN values in Hadoop REST API JSON response
> ---------------------------------------------------
>
>                 Key: YARN-1479
>                 URL: https://issues.apache.org/jira/browse/YARN-1479
>             Project: Hadoop YARN
>          Issue Type: Improvement
>    Affects Versions: 0.23.6, 2.0.4-alpha
>            Reporter: Kendall Thrapp
>            Assignee: Chen He
>         Attachments: Yarn-1479.patch, Yarn-1479v2.patch
>
>
> I've been occasionally coming across instances where Hadoop's Cluster Applications REST
API (http://hadoop.apache.org/docs/r0.23.6/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Applications_API)
has returned JSON that PHP's json_decode function failed to parse.  I've tracked the syntax
error down to the presence of the unquoted word NaN appearing as a value in the JSON.  For
example:
> "progress":NaN,
> NaN is not part of the JSON spec, so its presence renders the whole JSON string invalid.
 Hadoop needs to return something other than NaN in this case -- perhaps an empty string or
the quoted string "NaN".



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message