LuciferYang opened a new pull request, #39961:
URL: https://github.com/apache/spark/pull/39961
### What changes were proposed in this pull request?
`AppStatusStore.createLiveStore` will return `RocksDB` backend
`AppStatusStore` when `LIVE_UI_LOCAL_STORE_DIR` or `LIVE_UI_LOCAL_STORE_DIR`
is configured, it should be closed in finally block to release resources for
test cases.
There are 4 test case use `AppStatusStore.createLiveStore` method:
`AppStatusStoreSuite`, `StagePageSuite(call close in finally block)`,
`AllExecutionsPageSuite(call close in after method)`,
`SQLAppStatusListenerSuite(call close in after method)`, and only
`AppStatusStoreSuite` has `AppStatusStore` without manual closing, so this pr
has made the following changes:
- For `SPARK-36038: speculation summary should not be present if there are
no speculative tasks` in `AppStatusStoreSuite`, add close `AppStatusStore` in
finally block
- For `SPARK-26260: summary should contain only successful tasks' metrics
(store = $hint)`, move the existing `AppStatusStore.close` to the finally block
### Why are the changes needed?
Call `AppStatusStore.close` in the finally block to release possible RocksDB
resources.
### Does this PR introduce _any_ user-facing change?
NO, just for test
### How was this patch tested?
Pass GitHub Actions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]