chia7712 commented on code in PR #21279:
URL: https://github.com/apache/kafka/pull/21279#discussion_r2758606672
##########
transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/RPCProducerIdManager.java:
##########
@@ -114,8 +117,6 @@ private void maybeRequestNextBlock() {
if (nextProducerIdBlock.get() == null &&
requestInFlight.compareAndSet(false, true)) {
sendRequest();
- // Reset backoff after a successful send.
Review Comment:
I was thinking about using `compareAndSet` to resolve the race condition,
but your approach is much cleaner.
--
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]