I updated the KIP to include two additional widely used classes:
`org.apache.kafka.common.utils.ByteBufferInputStream` and
`org.apache.kafka.common.utils.ByteBufferOutputStream`.

I also added GitHub Code Search usage data for all three classes in
the motivation section.

The updated proposal is still:
- introduce copied internal replacements in Kafka `4.4.0`
- deprecate the existing public-package classes in Kafka `4.4.0`
- remove the old classes in Kafka `5.0.0`

Updated KIP:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-1320%3A+Deprecate+org.apache.kafka.common.utils.Utils+and+introduce+an+internal+replacement

Thanks,
Eric

On Thu, Apr 16, 2026 at 7:53 AM Eric Chang <[email protected]> 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

Reply via email to