Skip to content

Conversation

@cloud-fan
Copy link
Contributor

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

@cloud-fan
Copy link
Contributor Author

cc @sameeragarwal @shubhamchopra

Copy link
Member

@sameeragarwal sameeragarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending jenkins

@SparkQA
Copy link

SparkQA commented Apr 12, 2017

Test build #75747 has finished for PR 17624 at commit af487cd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Apr 12, 2017

nit: could you use a better title? You can add the test name into it.

@cloud-fan cloud-fan changed the title [SPARK-15354][flaky-test] Fix flaky test [SPARK-15354][flaky-test] TopologyAwareBlockReplicationPolicyBehavior.Peers in 2 racks Apr 13, 2017
@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to master!

@asfgit asfgit closed this in a7b430b Apr 13, 2017
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
….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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants