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

Hudson commented on YARN-2042:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #1779 (See 
[https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1779/])
YARN-2042. String shouldn't be compared using == in 
QueuePlacementRule#NestedUserQueue#getQueueForApp (Chen He via Sandy Ryza) 
(sandy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1594482)
* /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/QueuePlacementRule.java


> String shouldn't be compared using == in 
> QueuePlacementRule#NestedUserQueue#getQueueForApp()
> --------------------------------------------------------------------------------------------
>
>                 Key: YARN-2042
>                 URL: https://issues.apache.org/jira/browse/YARN-2042
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Chen He
>            Priority: Minor
>         Attachments: YARN-2042.patch
>
>
> {code}
>       if (queueName != null && queueName != "") {
> {code}
> queueName.isEmpty() should be used instead of comparing against ""



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to