-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21516][SQL][Test] Overriding afterEach() in DatasetCacheSuite must call super.afterEach() #18721
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
Conversation
|
LGTM |
|
Test build #79899 has finished for PR 18721 at commit
|
|
retest this please |
|
@kiszk while you're here, looks like HiveExternalCatalogBackwardCompatibilitySuite, ContainerPlacementStrategySuite, SparkSessionBuilderSuite, TextSocketStreamSuite need this fix too. |
|
@srowen good catch. I will work for that. |
|
Test build #79900 has finished for PR 18721 at commit
|
|
yea if many tests suite need the same fix, we can put it in |
|
Test build #79903 has finished for PR 18721 at commit
|
| // Clear all persistent datasets after each test | ||
| spark.sharedState.cacheManager.clearCache() | ||
| } finally { | ||
| super.afterEach() |
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.
sorry to be nit-pick, but seems we can just do
super.afterEach()
// Clear all persistent datasets after each test
spark.sharedState.cacheManager.clearCache()
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.
I see. done
|
Test build #79912 has finished for PR 18721 at commit
|
|
thanks, merging to master! |
What changes were proposed in this pull request?
This PR ensures to call
super.afterEach()in overridingafterEach()method inDatasetCacheSuite. When we overrideafterEach()method in Testsuite, we have to callsuper.afterEach().This is a follow-up of #18719 and SPARK-21512.
How was this patch tested?
Used the existing test suite