Russole opened a new pull request, #9995:
URL: https://github.com/apache/ozone/pull/9995
## What changes were proposed in this pull request?
* Introduce `SCMHAInvoker` interface to support non-reflection-based local
invocation
* Allow `SCMHAInvocationHandler` to use `SCMHAInvoker` for local invocation
instead of reflection
* Add `DeletedBlockLogStateManagerInvoker` as the first implementation
* Handle local (non-`@Replicate`) methods without using `Method#invoke`
* Add new overload of `getProxyHandler(...)` to accept an optional invoker
* Keep existing behavior unchanged for handlers without invoker (fallback to
reflection)
* Add new `scm.ha.invoker` package to organize invoker implementations
## Follow-up work
* Gradually introduce invokers for other handlers that use
`getProxyHandler(...)`
* e.g.` ContainerStateManager`, `PipelineStateManager`, etc.
* Replace reflection-based local invocation with explicit dispatch
incrementally
* This change is a first step towards reducing reliance on Proxy and
reflection-based invocation.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14892
## How was this patch tested?
- All CI checks passed
- https://github.com/Russole/ozone/actions/runs/23673956282
--
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]