Shekharrajak opened a new pull request, #24201:
URL: https://github.com/apache/kafka/pull/24201

   Adds opt-in share-group consumption for Kafka Connect sink connectors. 
Multiple tasks can process distinct records from the same Kafka partition, 
allowing task parallelism beyond the partition count.
   
   Enable it with `consumer.type=share`. The connector must provide a 
`ShareSinkTask` whose successful `put()` means every supplied record was 
handled durably.
   
   High-level flow:
   
   ```text
   Kafka topics -> share consumer -> conversion / SMTs -> durable destination 
write -> input ACK
   ```
   
   Processing sequence:
   
   ```text
   Startup: validate config and task capability -> reserve task identity -> 
start task and consumer owner
   Acquire: consumer owner polls -> renews and confirms ownership -> hands 
input to task thread
   Process: task thread converts / filters -> calls put with remaining records 
-> publishes completion
   Complete: consumer owner validates receipt -> ACCEPTs original inputs -> 
confirms ACK -> admits next batch
   ```
   
   The consumer owner continues renewing acquisitions while conversion, SMTs or 
destination writes run. Processing deadlines bound how long a batch can remain 
active.
   
   Key behaviour:
   - Original inputs remain separate from transformed outputs, so filtering and 
routing preserve the correct ACK identities.
   - Intentional filters count as completed processing; conversion failures do 
not.
   - Retries reuse prepared records after the previous call exits.
   - Cancellation retains execution ownership until the task and consumer lanes 
actually exit and cleanup completes.
   - Changing consumer mode or share-group identity requires the connector to 
be STOPPED with no tasks.
   - Ordinary sink and source connectors retain their existing paths.
   
   Delivery is at least once. A destination write followed by an unconfirmed 
input ACK can be delivered again. Kafka-to-Kafka EOS remains a separate 
follow-up.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to