hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3768) ArrayIndexOutOfBoundsException with empty environment variables
Date Wed, 01 Jul 2015 14:27:19 GMT

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

Hudson commented on YARN-3768:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #233 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/233/])
YARN-3768. ArrayIndexOutOfBoundsException with empty environment variables. (Zhihai Xu via
gera) (gera: rev 6f2a41e37d0b36cdafcfff75125165f212c612a6)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/Apps.java
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestApps.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java


> ArrayIndexOutOfBoundsException with empty environment variables
> ---------------------------------------------------------------
>
>                 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
>            Assignee: zhihai xu
>             Fix For: 2.8.0
>
>         Attachments: YARN-3768.000.patch, YARN-3768.001.patch, YARN-3768.002.patch, YARN-3768.003.patch,
YARN-3768.004.patch
>
>
> 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.
> {code}
> java.lang.ArrayIndexOutOfBoundsException: 1
> 	at org.apache.hadoop.yarn.util.Apps.setEnvFromInputString(Apps.java:80)
> {code}
> 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