cmccabe commented on a change in pull request #10753: URL: https://github.com/apache/kafka/pull/10753#discussion_r665801598
########## File path: metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java ########## @@ -235,6 +256,41 @@ int preferredReplica() { return replicas.length == 0 ? NO_LEADER : replicas[0]; } + boolean isReassigning() { + return removingReplicas.length > 0 || addingReplicas.length > 0; + } + + /** + * Check if an ISR change completes this partition's reassignment. + * + * @param newIsr The new ISR. + * @return True if the reassignment is complete. + */ + boolean isrChangeCompletesReassignment(int[] newIsr) { Review comment: We haven't implemented auto leader balancing yet, so we're OK here... -- 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