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-2453) TestProportionalCapacityPreemptionPolicy fails with FairScheduler
Date Mon, 22 Sep 2014 14:11:37 GMT

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

Hudson commented on YARN-2453:
------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1879 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1879/])
YARN-2453. TestProportionalCapacityPreemptionPolicy fails with FairScheduler. (Zhihai Xu via
kasha) (kasha: rev 9721e2c1feb5aecea3a6dab5bda96af1cd0f8de3)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/capacity/TestProportionalCapacityPreemptionPolicy.java
* hadoop-yarn-project/CHANGES.txt


> TestProportionalCapacityPreemptionPolicy fails with FairScheduler
> -----------------------------------------------------------------
>
>                 Key: YARN-2453
>                 URL: https://issues.apache.org/jira/browse/YARN-2453
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>             Fix For: 2.6.0
>
>         Attachments: YARN-2453.000.patch, YARN-2453.001.patch, YARN-2453.002.patch
>
>
> TestProportionalCapacityPreemptionPolicy is failed for FairScheduler.
> The following is error message:
> Running org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.TestProportionalCapacityPreemptionPolicy
> Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.94 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.TestProportionalCapacityPreemptionPolicy
> testPolicyInitializeAfterSchedulerInitialized(org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.TestProportionalCapacityPreemptionPolicy)
 Time elapsed: 1.61 sec  <<< FAILURE!
> java.lang.AssertionError: Failed to find SchedulingMonitor service, please check what
happened
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.TestProportionalCapacityPreemptionPolicy.testPolicyInitializeAfterSchedulerInitialized(TestProportionalCapacityPreemptionPolicy.java:469)
> This test should only work for capacity scheduler because the following source code in
ResourceManager.java prove it will only work for capacity scheduler.
> {code}
> if (scheduler instanceof PreemptableResourceScheduler
>           && conf.getBoolean(YarnConfiguration.RM_SCHEDULER_ENABLE_MONITORS,
>           YarnConfiguration.DEFAULT_RM_SCHEDULER_ENABLE_MONITORS)) {
> {code}
> Because CapacityScheduler is instance of PreemptableResourceScheduler and FairScheduler
is not  instance of PreemptableResourceScheduler.
> I will upload a patch to fix this issue.



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

Mime
View raw message