yew1eb opened a new pull request, #1620:
URL: https://github.com/apache/auron/pull/1620
# Which issue does this PR close?
Closes #1602 .
# Rationale for this change
Decouples the initialization of the `AuronAdaptor` instance from the
dependency on the implementation of `SparkAuronAdaptor` through the SPI
mechanism.
# What changes are included in this PR?
- Refactor `AuronAdaptor.getInstance()` to use double-checked locking +
`ServiceLoader`
- Add `AuronAdaptorProvider` SPI interface
- Implement `SparkAuronAdaptorProvider` in `spark-extension`
- Register provider via `META-INF/services` in `spark-extension`
# Are there any user-facing changes?
No
# How was this patch tested?
Unit tests in `AuronAdaptorTest`:
- Verify SPI loads `MockAuronAdaptor` via `META-INF/services`.
--
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]