You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Chia-Ping Tsai <ch...@apache.org> on 2026/05/29 15:19:36 UTC

Re: [DISCUSS] KIP-1320: Deprecate org.apache.kafka.common.utils.Utils and introduce an internal replacement

hi Eric

chia_00: I'm not a fan of duplicate code. Could we keep only public methods in the deprecate classes and then have them delegate to the internal ones?

Best,
Chia-Ping

On 2026/04/15 23:53:50 Eric Chang wrote:
> Hi Kafka devs,
> 
> I would like to start the discussion for KIP-1320:
> 
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-1320%3A+Deprecate+org.apache.kafka.common.utils.Utils+and+introduce+an+internal+replacement
> 
> This KIP proposes to deprecate `org.apache.kafka.common.utils.Utils`
> in Kafka `4.4.0`, introduce
> `org.apache.kafka.common.utils.internals.Utils` for Kafka internal
> usage, and remove the old `org.apache.kafka.common.utils.Utils` class
> in Kafka `5.0.0`.
> 
> The proposed migration keeps `org.apache.kafka.common.utils.Utils`
> source and binary compatible during the Kafka `4.4.x` line. The
> internal replacement is created by copying the existing
> implementation, so this KIP does not propose changing the behavior of
> any `Utils` method.
> 
> Please take a look and let me know your thoughts.
> 
> Thanks,
> Eric Chang
> 

Re: [DISCUSS] KIP-1320: Deprecate org.apache.kafka.common.utils.Utils and introduce an internal replacement

Posted by Eric Chang <un...@apache.org>.
chia_00: Agreed, I've updated KIP for your suggestion about the delegate part.

On 2026/05/29 15:19:36 Chia-Ping Tsai wrote:
> hi Eric
> 
> chia_00: I'm not a fan of duplicate code. Could we keep only public methods in the deprecate classes and then have them delegate to the internal ones?
> 
> Best,
> Chia-Ping
> 
> On 2026/04/15 23:53:50 Eric Chang wrote:
> > Hi Kafka devs,
> > 
> > I would like to start the discussion for KIP-1320:
> > 
> > https://cwiki.apache.org/confluence/display/KAFKA/KIP-1320%3A+Deprecate+org.apache.kafka.common.utils.Utils+and+introduce+an+internal+replacement
> > 
> > This KIP proposes to deprecate `org.apache.kafka.common.utils.Utils`
> > in Kafka `4.4.0`, introduce
> > `org.apache.kafka.common.utils.internals.Utils` for Kafka internal
> > usage, and remove the old `org.apache.kafka.common.utils.Utils` class
> > in Kafka `5.0.0`.
> > 
> > The proposed migration keeps `org.apache.kafka.common.utils.Utils`
> > source and binary compatible during the Kafka `4.4.x` line. The
> > internal replacement is created by copying the existing
> > implementation, so this KIP does not propose changing the behavior of
> > any `Utils` method.
> > 
> > Please take a look and let me know your thoughts.
> > 
> > Thanks,
> > Eric Chang
> > 
>