[ 
https://issues.apache.org/jira/browse/KAFKA-16356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824971#comment-17824971
 ] 

Linu Shibu edited comment on KAFKA-16356 at 3/9/24 5:30 PM:
------------------------------------------------------------

Can I assign this to myself and work on it [~gharris1727] ?


was (Author: JIRAUSER304485):
Can I assign this to myself and work on it?

> Remove class-name dispatch in RemoteLogMetadataSerde
> ----------------------------------------------------
>
>                 Key: KAFKA-16356
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16356
>             Project: Kafka
>          Issue Type: Task
>          Components: Tiered-Storage
>    Affects Versions: 3.7.0
>            Reporter: Greg Harris
>            Priority: Trivial
>              Labels: newbie
>
> The RemoteLogMetadataSerde#serialize receives a RemoteLogMetadata object, and 
> has to dispatch to one of four serializers depending on it's type. This is 
> done by taking the class name of the RemoteLogMetadata and looking it up in 
> maps to find the corresponding serializer for that class.
> This later requires an unchecked cast, because the RemoteLogMetadataTransform 
> is generic. This is all type-unsafe, and can be replaced with type-safe 
> if-elseif-else statements that may also be faster than the double-indirect 
> map lookups.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to