hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3768) Index out of range exception with environment variables without values
Date Thu, 04 Jun 2015 20:42:39 GMT

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

zhihai xu commented on YARN-3768:
---------------------------------

Hi [~joeferner], That is a good find. I can see the change at MAPREDUCE-5965 may trigger this
bug. I can take up this issue if you don't mind. thanks for reporting this issue.

> Index out of range exception with environment variables without values
> ----------------------------------------------------------------------
>
>                 Key: YARN-3768
>                 URL: https://issues.apache.org/jira/browse/YARN-3768
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 2.5.0
>            Reporter: Joe Ferner
>
> Looking at line 80 of org.apache.hadoop.yarn.util.Apps an index out of range exception
occurs if an environment variable is encountered without a value.
> I believe this occurs because java will not return empty strings from the split method.
Similar to this http://stackoverflow.com/questions/14602062/java-string-split-removed-empty-values



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message