You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Uladzislau Blok (Jira)" <ji...@apache.org> on 2026/05/02 09:04:00 UTC

[jira] [Updated] (KAFKA-20082) Hide record implementation from user

     [ https://issues.apache.org/jira/browse/KAFKA-20082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uladzislau Blok updated KAFKA-20082:
------------------------------------
    Description: 
I found a leak of internal implementation details in the api module. We’re currently exposing {{InternalFixedKeyRecordFactory}} with a "do not use" doc warning, which isn't ideal.

I propose exposing only the interface and moving the implementation/constructor to the internals module with package-private access. We can then remove the factory

Revisit in Kafka 5.0: https://github.com/apache/kafka/pull/21304#issuecomment-3882757633 

  was:
I found a leak of internal implementation details in the api module. We’re currently exposing {{InternalFixedKeyRecordFactory}} with a "do not use" doc warning, which isn't ideal.

I propose exposing only the interface and moving the implementation/constructor to the internals module with package-private access. We can then remove the factory

POC: [https://github.com/apache/kafka/pull/21304]


> Hide record implementation from user
> ------------------------------------
>
>                 Key: KAFKA-20082
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20082
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Uladzislau Blok
>            Assignee: Uladzislau Blok
>            Priority: Minor
>              Labels: need-kip
>
> I found a leak of internal implementation details in the api module. We’re currently exposing {{InternalFixedKeyRecordFactory}} with a "do not use" doc warning, which isn't ideal.
> I propose exposing only the interface and moving the implementation/constructor to the internals module with package-private access. We can then remove the factory
> Revisit in Kafka 5.0: https://github.com/apache/kafka/pull/21304#issuecomment-3882757633 



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