Hi Ashwin,
Thanks for the KIP. Here are my comments from an initial review. I've not
numbered them because at this stage they're very high-level comments about
scope.

I think that we need a single KIP for share group support for Kafka Connect
sinks. KIP-1302 doesn't go far enough, and KIP-1397 kind of steps around it.

I really like having ShareSinkTask as a subinterface of Task. This is much
better than having a SinkTask with consumer.type as a config. If it's a
ShareSinkTask, it is using a share group by definition and the code
implementing the runtime is cleanly separated. In an early version of KIP-932,
there was a group.type=share configuration and that was sensibly replaced
by an entirely separate KafkaShareConsumer class. I strongly suggest this
is the way here too.

I think the ShareSinkTask should administer the configs of its group, if
it is authorized. The various timeouts and limits which would make the
connector run smoothly would most neatly live within the connector config.

Using Kafka Connect DLQ processing makes sense to me for consistency
with the existing connectors. I don't think ACCEPTing when a record has
gone onto the Kafka Connect DLQ is sensible. It's a bit dishonest in
accounting terms for one thing. We could add a new share group
AcknowledgeType which will reject and definitely not DLQ, or we could
make sure that the group's errors.deadletterqueue.topic.name is blank
so DLQ is not enabled for the group.

I would be tempted to use record-limit acquire mode and to set the group's
lock timeout to match the processing max age, rather than use RENEW.
I would also control the max.poll.records to match the natural batching
of the target system for the connector.

Thanks,
Andrew

On 2026-11-13 06:51 UTC Ashwin via dev wrote:
> Hi all,
> 
> I'd like to start the discussion on KIP-1397, which adds share group
> support for Kafka Connect sink tasks.
> https://cwiki.apache.org/confluence/spaces/KAFKA/pages/462817279/KIP-1397+Share+Group+Queue+Support+for+Kafka+Connect+Sink+Connectors+via+ShareSinkTask
> 
> It is meant to complement KIP-1302 (cc'ing Shekhar Rajak). KIP-1302
> introduces the opt-in share runtime for Connect sinks and a task contract
> for connectors whose put() returns only once every record is durable.
> KIP-1397 keeps that runtime and its durability principle. It adds a second
> task contract for connectors whose durable write completes after put()
> returns. It also covers poison-pill/DLQ handling, throttling, offset
> administration and permissions, which KIP-1302's first version defers. It
> builds on the earlier discussion on the KIP-1302 thread and tries to
> address some of the points raised there:
> https://lists.apache.org/thread/p5zkp20rno8zz55mrjlw9brm6os5gfbv
> 
> One thing to settle early: both KIPs use the name ShareSinkTask. Shekhar,
> I'm happy to rename mine, or to fold this into KIP-1302 as an additional
> contract if you'd prefer. Whatever works best for you.
> 
> Feedback on the design, particularly the per-record acknowledgement API and
> the DLQ approach, is very welcome. The KIP draft was written with
> assistance from Claude; I've reviewed it and take responsibility for its
> content.
> 
> Thanks,
> Ashwin
> 

Reply via email to