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


##########
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() {

Review Comment:
   And likewise here:
   
   ```suggestion
       public List<Node> lastKnownEligibleLeaderReplicas() {
   ```



##########
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() {

Review Comment:
   Would you consider using the full name for the uninitiated?
   
   ```suggestion
       public List<Node> eligibleLeaderReplicas() {
   ```
   
   



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