-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-1010] Clean up uses of System.setProperty in unit tests #3739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
JoshRosen
wants to merge
27
commits into
apache:master
from
JoshRosen:cleanup-system-properties-in-tests
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
4dcea38
Move withSystemProperty to TestUtils class.
JoshRosen 9e3e0dd
Add ResetSystemProperties test fixture mixin; use it in SparkSubmitSu…
JoshRosen 628f46c
Use ResetSystemProperties in DistributedSuite
JoshRosen 14a92e4
Use withSystemProperty in FileServerSuite
JoshRosen 60a63a1
Use ResetSystemProperties in JobCancellationSuite
JoshRosen 51aa870
Use withSystemProperty in ShuffleSuite
JoshRosen c83ded8
Use ResetSystemProperties in SparkConfSuite
JoshRosen 0995c4b
Use ResetSystemProperties in SparkContextSchedulerCreationSuite
JoshRosen 5b3cb54
Use ResetSystemProperties in SparkListenerSuite
JoshRosen e9ded62
Use ResetSystemProperties in TaskSchedulerImplSuite
JoshRosen b0daff2
Use ResetSystemProperties in BlockManagerSuite
JoshRosen dd9492b
Use ResetSystemProperties in AkkaUtilsSuite
JoshRosen 1d1aa5a
Use ResetSystemProperties in SizeEstimatorSuite
JoshRosen 25bfce2
Use ResetSystemProperties in UtilsSuite
JoshRosen 633a84a
Remove use of system properties in FileServerSuite
JoshRosen 8783ab0
Remove TestUtils.setSystemProperty, since it is subsumed by the Reset…
JoshRosen cfe9cce
Remove use of system properties in SparkContextSuite
JoshRosen 3f2f955
Remove System.setProperty calls in DistributedSuite
JoshRosen 655587c
Remove setProperty calls in JobCancellationSuite
JoshRosen bee20df
Remove setProperty calls in SparkContextSchedulerCreationSuite
JoshRosen 3fdb554
Remove setProperty call in TaskSchedulerImplSuite
JoshRosen 7a3d224
Fix trait ordering
JoshRosen 0eaf0b6
Remove setProperty call in TaskResultGetterSuite.
JoshRosen 4742a5b
Clarify ResetSystemProperties trait inheritance ordering.
JoshRosen 4f4031d
Add note on why SparkSubmitSuite needs ResetSystemProperties
JoshRosen 3888fe3
Remove setProperty use in LocalJavaStreamingContext
JoshRosen 0236d66
Replace setProperty uses in two example programs / tools
JoshRosen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Clarify ResetSystemProperties trait inheritance ordering.
- Loading branch information
commit 4742a5bfc76f06d6d01eedf188a9ef6147148735
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: I should probably add a comment here explaining the ordering concerns between ResetSystemProperties and other traits that implement
withFixture. For example, if you're also using BeforeAndAfterEach to modify properties, then you should order the mixins likewith ResetSystemProperties with BeforeAndAfterEachso that this mixin can do the final cleanup.