frankvicky commented on code in PR #17109:
URL: https://github.com/apache/kafka/pull/17109#discussion_r1747223340


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:
##########
@@ -753,9 +754,14 @@ public void onResponse(final ClientResponse response) {
                             "failed with unknown member ID. " + 
error.message()));
                         return;
                     } else if (error == Errors.STALE_MEMBER_EPOCH) {
+                        String lastEpoch = "undefined";
+                        if (lastEpochSentOnCommit.isPresent()) {

Review Comment:
   I see. Thanks for exlaination 😃 
   I will see how to do it gracefully.
   It seems that it is hard to avoid to call `onFailedAttempt` in each case due 
to early return. 🤔 



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