LuciferYang opened a new pull request, #36200:
URL: https://github.com/apache/spark/pull/36200

   ### What changes were proposed in this pull request?
   `ExternalShuffleBlockResolver` and `YarnShuffleService`  use `LevelDB` 
directly, this is not conducive to extending the use of `RocksDB` in this 
scenario. This pr is encapsulated for expansibility. It will be the pre-work of 
SPARK-38888, the main change as follows:
   
   - Introduce `DB` interface and implementation of corresponding `LevelDB` 
now, `RocksDB` implementation will be involved in the future
   - Introduce `DBProvider` to initialization `DB`, it is only used to generate 
`LevelDB` now,  `RocksDB` implementation will be involved in the future
   - Change `StoreVersion` to top-level class, it will be reused by `RocksDB` 
implementation
   - Replace the directly use of `LevelDB` in `ExternalShuffleBlockResolver` 
and `YarnShuffleService` with `DB`
   - fix corresponding UTs and test tools
   
   
   ### Why are the changes needed?
   This is pre work of SPARK-38888
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GA


-- 
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]

Reply via email to