chb2ab commented on code in PR #14444:
URL: https://github.com/apache/kafka/pull/14444#discussion_r1343033045


##########
clients/src/main/java/org/apache/kafka/common/requests/ProduceResponse.java:
##########
@@ -210,6 +238,12 @@ public String toString() {
             b.append(logStartOffset);
             b.append(", recordErrors: ");
             b.append(recordErrors);
+            b.append(", currentLeader: ");
+            if (currentLeader != null) {

Review Comment:
   looking at the java docs I think you're right, this could be replaced by 
`b.append(currentLeader)`. I'm not sure why `errorMessage` was written this 
way, it looks like it was changed explicitly in [this 
commit](https://github.com/apache/kafka/commit/f41a5c2c8632bfd0dc50321c1c69418db04f42f6#diff-82aef2b279f7d0093b5e7bbd34cbf9abfa6bb5ed454c72419c03dbe2e58e0eab)
 but I don't see a reason for it, I could probably change this as well.



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