[
https://issues.apache.org/jira/browse/YARN-6203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlo Curino updated YARN-6203:
-------------------------------
Attachment: YARN-6203-YARN-2915.v0.patch
Flacking was due to the fact that variance of sampling was high for very small
weights (normal). I changed how weights are generated (closer to evenly
spread). This also allowed to reduce the number of samples to get within a good
margin (1%), thus speeding up the test.
I ran 1000 repeated runs of this test with not flackiness.
> Occasional test failure in TestWeightedRandomRouterPolicy
> ---------------------------------------------------------
>
> Key: YARN-6203
> URL: https://issues.apache.org/jira/browse/YARN-6203
> Project: Hadoop YARN
> Issue Type: Sub-task
> Affects Versions: YARN-2915
> Reporter: Botong Huang
> Assignee: Carlo Curino
> Priority: Minor
> Attachments: YARN-6203-YARN-2915.v0.patch
>
>
> Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.432 sec <<<
> FAILURE! - in
> org.apache.hadoop.yarn.server.federation.policies.router.TestWeightedRandomRouterPolicy
> testClusterChosenWithRightProbability(org.apache.hadoop.yarn.server.federation.policies.router.TestWeightedRandomRouterPolicy)
> Time elapsed: 7.437 sec <<< FAILURE!
> java.lang.AssertionError: Id sc5 Actual weight: 0.00228 expected weight:
> 0.0018106138
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at
> org.apache.hadoop.yarn.server.federation.policies.router.TestWeightedRandomRouterPolicy.testClusterChosenWithRightProbability(TestWeightedRandomRouterPolicy.java:118)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]