Hi Abhinav, thanks for the KIP. I have some questions, mostly where I think the KIP needs to be more explicit.
*AM1.* The KIP says that on a leadership change the old leader cancels its timers and the new leader makes delayed records available immediately. It doesn't say what happens on a broker restart, controlled shutdown or rolling upgrade, which I assume behave the same way because the share partition is re-initialized from persisted state. Could you state that explicitly, along with the consequence? The delivery count is persisted but the delay is not, correct? After a restart a record can be redelivered immediately and use up an attempt. It can then reach group.share.delivery.count.limit sooner than the backoff intended. In the downstream-outage case from the motivation, a rolling restart could defeat the backoff. I'd suggest documenting the delay as a best-effort minimum and not a guarantee, and explaining why the deadline isn't persisted. *AM2.* Delayed records stay in flight, count towards share.partition.max.record.locks and block the start offset. With delays of up to an hour allowed, a broad failure could fill the lock limit with delayed records, so the partition would hand out no new records, even healthy ones, until the delays expire. Could the KIP include a worst-case example and some guidance for operators? Did you consider exempting delayed records from the lock limit, or weighting them differently? *AM3.* What happens when every available record in a share partition is delayed i.e. say all the batches are released consuming max in-flight limit. Share fetch waits in purgatory, so should expiry of a delay complete the pending DelayedShareFetch (won't suggest that, but writing here for discussion)? If it doesn't, redelivery would be delayed by up to fetch.max.wait.ms beyond the configured backoff. Maybe we should clarify same in the KIP that this could happen or fix it somehow in the implementation. What do you suggest? *AM4.* Should the KIP require that share.release.backoff.ms is always less than or equal to share.release.backoff.max.ms? Both are group configs that can be altered independently, so validation would need to check one against the other, for example rejecting an incrementalAlterConfigs that lowers share.release.backoff.max.ms below the current share.release.backoff.ms. If the KIP chooses not to validate this, please state how exponential mode behaves when share.release.backoff.ms is higher than share.release.backoff.max.ms: is the first delay clamped to the max, or is the base value used as-is? *AM5.* The KIP says a config change applies only to delays that start after the change, and records already waiting keep their delay. Is that the right behaviour when the change is meant to stop delays? For example, if an operator sets group.share.max.release.backoff.ms to 0, or sets share.release.backoff.mode to off for a group, to recover from a misconfigured backoff, records already waiting could still be withheld for up to the old maximum. Should the leader re-evaluate pending timers on a config change, at least when the new effective delay is shorter or zero? If not, please state this explicitly and note that the operator's only way to release waiting records sooner is a leadership change. *AM6.* A lock timeout has already waited the full lock duration before the record is released. Is it intended that the backoff is added on top of that and why? Regards, Apoorv Mittal On Mon, Nov 16, 2026 at 8:58 AM Abhinav Dixit via dev <[email protected]> wrote: > Hi Andrew, > Thanks for the feedback. I've updated the KIP. > > AS1) Fixed. > > AS2) Yes, setting group.share.max.release.backoff.ms to 0 is meant to turn > off redelivery delays for all share groups, so I've made it a dynamic > broker config with a cluster-wide update mode. > > AS3) Done. > > AS4) Agreed, that's simpler to use. I've replaced > share.release.backoff.exponential.enable > with share.release.backoff.mode, which takes the suggested values. > > Thanks, > Abhinav > > On Fri, Nov 13, 2026 at 8:10 PM Andrew Schofield via dev < > [email protected]> wrote: > > > Hi Abhinav, > > Thanks for the KIP. This is a nice improvement which fits in well. I > > see that the way you have done the broker configurations doesn't match > > what we've done before (there's no max-max), but I think that what > > you've done is fine and less complicated. > > > > A few comments from an initial review. > > > > AS1) Typo "ype" instead of "Type" in the group config table. > > > > AS2) If the broker configuration group.share.max.release.backoff.ms > > is intended as a way to disable redelivery delays, please call it out as > > a dynamic broker config so the code is written accordingly. > > > > AS3) In the section on lag, you say "so they count as lag". I suggest > > that "remain in-flight" would be more elegant. > > > > AS4) I wonder whether another way to do the configuration might be > > to replace share.release.backoff.exponential.enable with > > share.release.backoff.mode with three values: > > > > off (default) > > fixed - Every wait is share.release.backoff.ms without jitter > > exponential - what you've written for the exponential case > > > > The reason I suggest this is that we could have a non-zero > > share.release.backoff.ms value (say 2000ms) which acts as a suggested > > starting point for a backoff delay. The default exponential backoff > > delay would then be 2000+4000+8000+16000 = 30000ms, and all a user > > would have to set is `share.release.backoff.mode=exponential`. Wdyt? > > > > Thanks, > > Andrew > > > > > > On 2026-11-12 06:57 UTC Abhinav Dixit via dev wrote: > > > Hi all, > > > I'd like to start a discussion on KIP-1395, which allows a share group > to > > > introduce a delay and optional exponential backoff capability within > its > > > redelivery model. > > > > > > Today, a released or expired record becomes available for redelivery as > > > soon as its lock clears, there is no way to slow down or space out > > retries > > > per share group. This KIP adds a per-group config for how long a record > > is > > > unavailable for fetching after an explicit release or record expiry. It > > > also adds an optional exponential-backoff mode that increases this > delay > > as > > > a record's delivery count grows, up to a bounded maximum. > > > > > > > > > Looking forward to your feedback. > > > > > > KIP link - > > > > > > https://urldefense.com/v3/__https://cwiki.apache.org/confluence/spaces/KAFKA/pages/462817066/KIP-1395*Redelivery*delay*and*backoff*for*share*groups__;KysrKysrKw!!Ayb5sqE7!uwJ22IRxAASfybHWupjoyXq7dWAQE9YNGTBs0W7z6t4sdCBM0JoYpN3OcMha8WD8U0he0RrRkumNJAQ6a3w$ > > > > > > > > > JIRA link - > > > https://urldefense.com/v3/__https://issues.apache.org/jira/browse/KAFKA-21482__;!!Ayb5sqE7!uwJ22IRxAASfybHWupjoyXq7dWAQE9YNGTBs0W7z6t4sdCBM0JoYpN3OcMha8WD8U0he0RrRkumNSpKK6gk$ > > > > > > > > > Thanks, > > > Abhinav > > > > > >
