Russole opened a new pull request, #9919: URL: https://github.com/apache/ozone/pull/9919
## What changes were proposed in this pull request? * Add `genericType` field to `MethodArgument` in `SCMRatisProtocol.proto` to store the element type T of `List<T>`. * Add `genericType` field to `SCMRatisResponseProto` to preserve generic type information in responses. * Update `SCMRatisRequest` and `SCMRatisResponse encode()` to include `genericType` when the parameter is `List<T>`. * Update `SCMRatisRequest` and `SCMRatisResponse` `decode()` to reconstruct the corresponding generic `Type`. * Add `genericParameterTypes` parameter to `SCMRatisRequest` and `SCMRatisResponse` constructors to preserve generic type information. * Add `getCodec(Type type)` and `getOrCreateListCodec()` in `ScmCodecFactory` to support resolving codecs for `List<T>`. * Update `ScmListCodec` to support generic element types instead of inferring the type from runtime values. * Dynamically create and cache `ScmListCodec` instances for `List<T>` based on the element type. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14740 ## How was this patch tested? - All CI checks passed - https://github.com/Russole/ozone/actions/runs/23072421922 -- 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]
