[SPARK-21516][SQL][Test] Overriding afterEach() in DatasetCacheSuite must call super.afterEach()#18721
[SPARK-21516][SQL][Test] Overriding afterEach() in DatasetCacheSuite must call super.afterEach()#18721kiszk wants to merge 3 commits into
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.
sorry to be nit-pick, but seems we can just do
super.afterEach()
// Clear all persistent datasets after each test
spark.sharedState.cacheManager.clearCache()
|
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