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

   In the consumer, we invoke the consumer rebalance onPartitionRevoked or 
onPartitionLost callbacks, when the consumer closes. The point is that the 
application may want to commit, or wipe the state if we are closing 
unsuccessfully.
   
   In the StreamsRebalanceListener, we did not implement this behavior, which 
means when closing the consumer we may lose some progress, and in the worst 
case also miss that we have to wipe our local state state since we got fenced.
   
   In this PR we implement StreamsRebalanceListenerInvoker, very similarly to 
ConsumerRebalanceListenerInvoker and invoke it in Consumer.close.
   
   


-- 
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