Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-15354][FLAKY-TEST] TopologyAwareBlockReplicationPolicyBehavior…
….Peers in 2 racks ## What changes were proposed in this pull request? `TopologyAwareBlockReplicationPolicyBehavior.Peers in 2 racks` is failing occasionally: https://spark-tests.appspot.com/test-details?suite_name=org.apache.spark.storage.TopologyAwareBlockReplicationPolicyBehavior&test_name=Peers+in+2+racks. This is because, when we generate 10 block manager id to test, they may all belong to the same rack, as the rack is randomly picked. This PR fixes this problem by forcing each rack to be picked at least once. ## How was this patch tested? N/A Author: Wenchen Fan <[email protected]> Closes apache#17624 from cloud-fan/test.
- Loading branch information