hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Ryza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1351) Invalid string format in Fair Scheduler log warn message
Date Wed, 15 Jan 2014 23:12:23 GMT

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

Sandy Ryza commented on YARN-1351:
----------------------------------

(Sorry for the delay)

> Invalid string format in Fair Scheduler log warn message
> --------------------------------------------------------
>
>                 Key: YARN-1351
>                 URL: https://issues.apache.org/jira/browse/YARN-1351
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>            Reporter: Konstantin Weitz
>            Assignee: Konstantin Weitz
>             Fix For: 2.4.0
>
>         Attachments: fixprnt.patch
>
>
> While trying to print a warning, two values of the wrong type (Resource instead of int)
are passed into a String.format method call, leading to a runtime exception, in the file:
> _trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/QueueManager.java_.
> The warning was intended to be printed whenever the resources don't fit into each other,
either because the number of virtual cores or the memory is too small. I changed the %d's
into %s, this way the warning will contain both the cores and the memory.



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

Mime
View raw message