jolshan commented on code in PR #12149:
URL: https://github.com/apache/kafka/pull/12149#discussion_r1166059935


##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:
##########
@@ -607,6 +608,14 @@ public synchronized void 
handleCompletedBatch(ProducerBatch batch, ProduceRespon
         removeInFlightBatch(batch);
     }
 
+    public synchronized void transitionToUninitialized(RuntimeException 
exception) {
+        transitionTo(State.UNINITIALIZED);
+        lastError = null;
+        if (pendingTransition != null) {

Review Comment:
   Do you have more background on what pendingTransitions we typically have? I 
don't think this hurts unless it will cause a fatal error. If it does, we may 
need to take a closer look.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to