Hi Chia, Sushant,

Thanks both, and I agree with you.
Since we don't see much benefit after KAFKA-21228, the motivation for the
KIP isn't strong enough.

This KIP will be discarded.

Thanks,
Murali

On Mon, Nov 23, 2026 at 8:12 PM Sushant Mahajan via dev <
[email protected]> wrote:

>
>
> On 2026/11/21 20:08:50 Chia-Ping Tsai wrote:
> > Hi
> >
> > I have been struggling with whether we still need another mechanism to
> > trigger more snapshots once the timer is fixed in KAFKA-21228.
> >
> > The timer can advance the log start offset periodically, and I don't see
> an
> > obvious benefit to writing more snapshots. I assumed that replay could
> skip
> > the update records, but I was wrong. The loader replays all update
> records
> > before it reaches the snapshot.
> >
> > In short, the timer seems to be good enough. I am even considering
> > deprecating the count.
> >
> > Any thoughts?
> >
> > On Sat, Nov 21, 2026 03:30 AM, Muralidhar Basani via dev <
> > [email protected]> wrote:
> >
> > > Hi Chia,
> > > Thanks again for the review.
> > >
> > > Agree with the fix on KAFKA-21228 regarding the cold snapshot timer.
> > > I have updated the motivation accordingly.
> > >
> > > Pls let me know if any further comments.
> > >
> > > Thanks,
> > > Murali
> > >
> > > On Thu, Nov 19, 2026 at 10:14 AM Chia-Ping Tsai <[email protected]>
> > > wrote:
> > >
> > > > Hi Murali,
> > > >
> > > > I want to revisit the motivation. Once KAFKA-21228 is fixed, the
> timer
> > > will
> > > > be the safety net for low-throughput partitions. So what is the
> purpose
> > > of
> > > > the per-group count?
> > > >
> > > > I think the answer is recovery time. A high-throughput partition can
> > > > accumulate many updates within 5 minutes, and the only way to reduce
> the
> > > > replay is the count. However, lowering the broker-level count
> affects all
> > > > other partitions as well. That is why we need the group-level count.
> > > >
> > > > WDYT? If you agree, it would be great to update the motivation
> > > accordingly.
> > > >
> > > > Best,
> > > > Chia-Ping
> > > >
> > > > On Fri, Nov 13, 2026 05:26 AM, Muralidhar Basani via dev <
> > > > [email protected]> wrote:
> > > >
> > > > > Hi Chia,
> > > > >
> > > > > Thanks for the follow up. I have updated KIP-1349 according to our
> > > > > discussion:
> > > > >
> > > > >  - Switched back to a per-group count config
> > > > >  - Raised the broker-level upper bound to 1000
> > > > >  - Fixed the inconsistency. group values above the broker limit
> are now
> > > > > clamped at runtime
> > > > >
> > > > > Hi Sushant, reg metrics, since bytes-since-snapshot no longer
> fits, I
> > > > > replaced it with snapshot-record-rate/total and
> > > update-record-rate/total.
> > > > >
> > > > > Please take a look at the updated KIP and let me know if any
> feedback.
> > > > >
> > > > > KIP -
> > > > > https://cwiki.apache.org/confluence/spaces/KAFKA/pages/42195
> > > > > 8844/KIP-1349+Configurable+snapshot+frequency+for+share+groups
> > > > >
> > > > > Thanks,
> > > > > Murali
> > > > >
> > > > > On Thu, Nov 12, 2026 at 9:21 AM Chia-Ping Tsai <[email protected]
> >
> > > > wrote:
> > > > >
> > > > > > Hi Murali,
> > > > > >
> > > > > > Would you mind updating KIP-1349 according to our discussion,
> i.e.
> > > > > > switching back to a per-group count config and raising the
> > > broker-level
> > > > > > upper bound?
> > > > > >
> > > > > > Also, the KIP is inconsistent about how a group-level value
> above the
> > > > > > broker-level limit is handled: Public Interfaces says it's
> rejected
> > > at
> > > > > > alter time, while Proposed Changes says it's clamped. Since the
> > > broker
> > > > > > config can change after the group config is set, I think we
> should
> > > > clamp
> > > > > > the value at runtime.
> > > > > >
> > > > > > Once the KIP is updated, it may be worth restarting the vote.
> > > > > >
> > > > > > Best,
> > > > > > Chia-Ping
> > > > > >
> > > > > > On Thu, Oct 08, 2026 02:25 PM, Muralidhar Basani via dev <
> > > > > > [email protected]> wrote:
> > > > > >
> > > > > > > Hi Chia,
> > > > > > > Thanks for taking another look. From what I understand,
> pruning has
> > > > to
> > > > > > wait
> > > > > > > for the slowest group on the state partition to snapshot
> before it
> > > > can
> > > > > > > delete old records.
> > > > > > >
> > > > > > > For ex: if groups A and B share a state partition:
> > > > > > > - A snapshots frequently .. its latest snapshot is at offset
> 900.
> > > > > > > - B has low traffic ... its latest snapshot is still at offset
> 100.
> > > > > > >
> > > > > > > So the prune point is min(900, 100) which is 100, so only
> offsets
> > > > 0–99
> > > > > > can
> > > > > > > be deleted. Everything A writes after that stays on disk until
> B
> > > > > > snapshots
> > > > > > > again. So B's threshold is controlling the size than A's
> snapshots,
> > > > > > whether
> > > > > > > it's in bytes or a count.
> > > > > > >
> > > > > > > I had moved the KIP to bytes after your earlier suggestion
> > > (chia_01),
> > > > > > but I
> > > > > > > agree the pruning behaviour makes bytes much less useful here
> than
> > > > in a
> > > > > > > buffering case like KIP-1325, where a byte limit directly
> bounds
> > > > > memory.
> > > > > > >
> > > > > > > I think we had earlier calculations showed update records are a
> > > > fairly
> > > > > > > constant size, so a count gives nearly the same result.
> > > > > > >
> > > > > > > I shall revise the KIP back to a count based approach and
> follow up
> > > > > here.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Murali
> > > > > > >
> > > > > > > On Tue, Oct 6, 2026 at 8:52 AM Chia-Ping Tsai <
> [email protected]
> > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > After re-reading the KIP, I'm not sure whether bytes is
> better
> > > than
> > > > > > > count.
> > > > > > > > Eventually the prune must wait for "all" share partitions on
> the
> > > > > state
> > > > > > > > partition to be snapshotted. That means users can hardly
> evaluate
> > > > the
> > > > > > > > retained log size from a per-partition threshold, no matter
> it is
> > > > > count
> > > > > > > or
> > > > > > > > bytes.
> > > > > > > >
> > > > > > > > On the other side, the concept of "per-group" is good to me,
> > > since
> > > > it
> > > > > > > > allows the low-traffic groups to snapshot more often.
> > > > > > > >
> > > > > > > > So I'm wondering whether a per-group count config (plus
> raising
> > > the
> > > > > > > broker
> > > > > > > > upper bound) is enough for this KIP.
> > > > > > > >
> > > > > > > > Best,
> > > > > > > > Chia-Ping
> > > > > > > >
> > > > > > > > On 2026-05-22 19:30 UTC Muralidhar Basani via dev wrote:
> > > > > > > > > Hi all,
> > > > > > > > >
> > > > > > > > > I would like to start a discussion on KIP-1349, which
> allows
> > > > > > > configurable
> > > > > > > > > snapshot frequency of share groups.
> > > > > > > > >
> > > > > > > > > KIP :
> > > > > > > > >
> > > > > > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-1349%
> > > > > > > 3A+Configurable+snapshot+frequency+for+share+groups
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Murali
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > Hi,
> Yes, though the solution is elegant, there is no immediate problem which
> is solves
> and there does not seem to be any pressing requirement from the community.
> With the snapshot update fix, the starvation is gone and we already have
> STATE_TOPIC_PRUNE_INTERVAL_MS_CONFIG,
> COLD_PARTITION_SNAPSHOT_INTERVAL_MS_CONFIG
> configs to speed up the process.
>

Reply via email to