Hi Chia-Ping: Thanks for your comments.
Actually, I did consider this idea at the very beginning. As you mentioned, such a change wouldn’t require going through the KIP process. However, I didn’t adopt this approach because, from an implementation perspective, it would likely lead to logic along the lines of if (xxx instance of TopicBasedRemoteLogMetadataManager) then "special handle", which doesn’t seem very elegant. Regarding the public interface, I hadn’t initially thought of making it fully public; I only added a default method to the interface (though it still needs the KIP). But, as Abb pointed out, making it a public interface could be beneficial since many places could use it and gain from it, and I do agree with this perspective. After all, using a topic as the storage medium is certainly not limited to tiered storage. Ultimately, after considering everyone’s feedback and ideas, I implemented it in the current way. Anyway, Thank you very much for your suggestion! Regards Jian Chia-Ping Tsai <[email protected]> 于2025年10月21日周二 22:09写道: > hi jian > > thanks for the KIP. I have a major question. > > chia_00: It appears this approach currently works only for > `TopicBasedRemoteLogMetadataManager`. Perhaps we could add specific > handling for it directly within the broker server? The benefit would be > avoiding a KIP and eliminating the need to maintain a "public" callback > function. > > Best, > Chia-Ping > > On 2025/07/25 06:28:24 jian fu wrote: > > Hi Everyone: > > Nice to meet you. > > > > I created one KIP to request your review. > > KIP-1197: Introduce new method to improve the > > TopicBasedRemoteLogMetadataManager's initialization > > < > https://cwiki.apache.org/confluence/display/KAFKA/KIP-1197%3A+Introduce+new+method+to+improve+the+TopicBasedRemoteLogMetadataManager%27s+initialization > > > > > > The PR: > > https://github.com/apache/kafka/pull/20203/files > > > > Thanks. > > > > > > Regards Fu.Jian > > >
