Skip to main content

Posts

Re: Kafka client partitionsFor API change in behavior (Kafka-client-4.1.1)

Ok. Thanks for the clarification. On Thu, Feb 19, 2026 at 8:04 PM Chia-Ping Tsai < chia7712@gmail.com > wrote: > Hi Subra, > > It seems to me both use an async approach. The root cause is that the > returned error code is different. Please check > https://issues.apache.org/jira/browse/KAFKA-20089 for more details. > > Thanks, > Chia-Ping > > Subra I < iamsubra100@gmail.com > 於 2026年2月19日週四 下午9:58寫道: > > > Thanks for the response Lianet. > > > > This problem happens only in kraft mode brokers. Works fine if we use > kafka > > broker in non-kraft mode. (WIth zookeeper) > > > > From what I understand: (I may be wrong. this is what I read online) > > > > In zookeeper mode, on getting a partitionsFor request, the broker > creates a > > topic if not present and then immediately returns the number of > partitions. > > All this happens synchronously. ...

Re: Kafka client partitionsFor API change in behavior (Kafka-client-4.1.1)

Hi Subra, It seems to me both use an async approach. The root cause is that the returned error code is different. Please check https://issues.apache.org/jira/browse/KAFKA-20089 for more details. Thanks, Chia-Ping Subra I < iamsubra100@gmail.com > 於 2026年2月19日週四 下午9:58寫道: > Thanks for the response Lianet. > > This problem happens only in kraft mode brokers. Works fine if we use kafka > broker in non-kraft mode. (WIth zookeeper) > > From what I understand: (I may be wrong. this is what I read online) > > In zookeeper mode, on getting a partitionsFor request, the broker creates a > topic if not present and then immediately returns the number of partitions. > All this happens synchronously. > > In kraft mode, the broker creates a topic asynchronously. So, unless u > retry, you wont get the total number of partitions. > > Like I said, this is what I read. > > On Tue, Feb 17, 2026 at 3:19 AM Lianet Magra...

Re: Kafka client partitionsFor API change in behavior (Kafka-client-4.1.1)

Thanks for the response Lianet. This problem happens only in kraft mode brokers. Works fine if we use kafka broker in non-kraft mode. (WIth zookeeper) From what I understand: (I may be wrong. this is what I read online) In zookeeper mode, on getting a partitionsFor request, the broker creates a topic if not present and then immediately returns the number of partitions. All this happens synchronously. In kraft mode, the broker creates a topic asynchronously. So, unless u retry, you wont get the total number of partitions. Like I said, this is what I read. On Tue, Feb 17, 2026 at 3:19 AM Lianet Magrans < lianetm@apache.org > wrote: > Hi Anand, > > The partitionsFor API does not guarantee that a single call will return the > data if the topic does not exist. It issues a first metadata request to > create the topic, and waits for the api timeout for a response (timeout > param or default.api.timeout.ms config). Then returns whatever it...

Re: Tiered Storage Disable Feature Not Working in Kafka 3.9

Hi Avishek, Unfortunately, disabling tiered storage only works under KRaft mode. If you look closely at the KIP-950[1], you'll see this sentence (see the underlined section): > *Support for Both KRaft and Zookeeper-backed Clusters*: The tiered storage disablement feature should be designed and implemented to support both KRaft and Zookeeper-backed Kafka clusters, ensuring compatibility across different cluster configurations. Updated: *We will implement for KRaft only in v3.9.0.* I agree that the KIP itself seems to state that it will work with both. But in the end it was only implemented in KRaft mode. Also, one can see in the documentation PR[2] that it only mentions how to disable it in KRaft mode. Sorry this is not the answer you were looking for. [1]: https://cwiki.apache.org/confluence/display/KAFKA/KIP-950%3A++Tiered+Storage+Disablement [2]: https://github.com/apache/kafka/pull/16836/changes On Wed, Feb 18, 2026 at 1:53 PM Avishek Das via users...

Re: Broker not triggering scheduled RLMCopy tasks

Hello Jian, Thanks for sharing the references. I just wanted to confirm, did you encounter the same issue where the RLMCopyTask was created but did not copy segments to remote storage, or was the RLMCopyTask not created at all in your case? On Tue, Feb 17, 2026 at 8:48 AM jian fu < fujian1115@gmail.com > wrote: > Hi Avishek Das: > > Though I am not sure about your issue. but I encounter the similar issue > and fix it with: > > https://github.com/apache/kafka/pull/20007 > https://github.com/apache/kafka/pull/20203 > https://cwiki.apache.org/confluence/x/Hg9JFg > > You can refer to it to see if it is the same issue. thanks > > Regards > Jian > > Avishek Das via users < users@kafka.apache.org > 于2026年2月16日周一 21:32写道: > > > Hello Team, > > > > During tiered storage performance testing on Kafka 3.9.1, we observed > cases > > where a broker did not trigger scheduled RL...

Tiered Storage Disable Feature Not Working in Kafka 3.9

Hello Community, As part of our testing, I am validating the scenario where tiered storage is disabled on a topic where it was previously enabled. I attempted to alter the topic configuration using the following configs: remote.storage.enable=true remote.log.copy.disable=true However, this results in an exception stating that remote.log.copy.disable is not valid in ZooKeeper mode. Caused by: org.apache.kafka.common.errors.InvalidConfigurationException: It is invalid to set `remote.log.delete.on.disable` or `remote.log.copy.disable` under Zookeeper's mode. We are running Kafka v3.9.1 on a ZooKeeper-backed cluster, and based on the KIP-950 < https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=263424654#KIP950:TieredStorageDisablement-StateTransitions > documentation, these configurations appear to be available for ZooKeeper-based clusters as well. Am I missing any prerequisite or additional step required to disable Tiered Storage ...

[ANNOUNCE] Apache Kafka 4.2.0

The Apache Kafka community is pleased to announce the release for Apache Kafka 4.2.0 This release has many exciting changes: * Kafka Queues (Share Groups) is now production-ready with new features like the RENEW acknowledgement type for extended processing times, adaptive batching for share coordinators, soft and strict enforcements of quantity of fetched records, and comprehensive lag metrics. * Kafka Streams brings the server-side rebalance protocol to GA with a limited feature set, adds dead letter queue support in exception handlers, introduces anchored wall-clock punctuation for deterministic scheduling, and gives users full control over whether to send a leave group request on closing. * This release also delivers significant improvements to consistency and observability: CLI tools now feature standardized arguments like –bootstrap-server across all tools, metric naming has been corrected to follow the kafka.COMPONENT convention, and new idle ratio metrics pr...