Skip to content

Conversation

@vanzin
Copy link
Contributor

@vanzin vanzin commented Apr 2, 2017

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.

…ide it.

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.
@SparkQA
Copy link

SparkQA commented Apr 2, 2017

Test build #75454 has finished for PR 17508 at commit 70e48fb.

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

@vanzin
Copy link
Contributor Author

vanzin commented Apr 3, 2017

@srowen @tgravescs

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Seems OK as a simple dependency injection mechanism though you all will know this code better than I

@vanzin
Copy link
Contributor Author

vanzin commented Apr 4, 2017

Merging to master / 2.1.

@asfgit asfgit closed this in 0736980 Apr 4, 2017
asfgit pushed a commit that referenced this pull request Apr 4, 2017
…ide it.

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.

Author: Marcelo Vanzin <[email protected]>

Closes #17508 from vanzin/SPARK-20191.

(cherry picked from commit 0736980)
Signed-off-by: Marcelo Vanzin <[email protected]>
@vanzin vanzin deleted the SPARK-20191 branch April 11, 2017 18:25
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.

3 participants