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

   Closing a transactional producer with an empty transaction completes the 
`EndTxn` locally without sending it, but `Sender#runOnce` still calls 
`client.poll`. Nothing is in flight to wake it, so `close()` blocks until 
`request.timeout.ms` (30s by default).
   
   This patch makes `Sender#maybeSendAndPollTransactionalRequest` return true 
when the sender is closing and the transaction was completed locally during 
this call. runOnce then skips the poll and the shutdown loop exits immediately. 
Behavior while the sender is running is unchanged.


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