[ https://issues.apache.org/jira/browse/YARN-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009162#comment-14009162 ]
Ashwin Shankar commented on YARN-2105: -------------------------------------- [~sandyr], These test failures are due to defaultQueueName field in Default rule not getting initialized when queue placement policy is not configured in the alloc xml,resulting in NPEs/assertion failures. To correct this, I've overridden the initialize method in Default rule to set the defaultQueueName field if it is not already set. initialize() is directly called from QueuePlacementPolicy.java,in cases when policy is not configured(QueuePlacementPolicy.fromConfiguration()). Added a unit test to verify that default rule is initialized properly in aforementioned scenario. Apologize for any inconvenience caused. > Three TestFairScheduler tests fail in trunk > ------------------------------------------- > > Key: YARN-2105 > URL: https://issues.apache.org/jira/browse/YARN-2105 > Project: Hadoop YARN > Issue Type: Test > Reporter: Ted Yu > Assignee: Ashwin Shankar > Attachments: YARN-2105-v1.txt > > > The following tests fail in trunk: > {code} > Failed tests: > TestFairScheduler.testDontAllowUndeclaredPools:2412 expected:<1> but was:<0> > Tests in error: > TestFairScheduler.testQueuePlacementWithPolicy:624 NullPointer > TestFairScheduler.testNotUserAsDefaultQueue:530 ยป NullPointer > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)