CalvinConfluent commented on code in PR #15265:
URL: https://github.com/apache/kafka/pull/15265#discussion_r1505044242


##########
clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java:
##########
@@ -79,9 +95,24 @@ public List<Node> isr() {
         return isr;
     }
 
+    /**
+     * Return the eligible leader replicas of the partition. Note that the 
ordering of the result is unspecified.
+     */
+    public List<Node> elr() {
+        return elr;
+    }
+
+    /**
+     * Return the last known eligible leader replicas of the partition. Note 
that the ordering of the result is unspecified.
+     */
+    public List<Node> lastKnownElr() {
+        return lastKnownElr;
+    }
+
     public String toString() {
         return "(partition=" + partition + ", leader=" + leader + ", 
replicas=" +
-            Utils.join(replicas, ", ") + ", isr=" + Utils.join(isr, ", ") + 
")";
+            Utils.join(replicas, ", ") + ", isr=" + Utils.join(isr, ", ") +
+            Utils.join(elr, ", ") + Utils.join(lastKnownElr, ", ") + ")";

Review Comment:
   Done.



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