cmccabe commented on a change in pull request #10753: URL: https://github.com/apache/kafka/pull/10753#discussion_r669896829
########## File path: metadata/src/main/java/org/apache/kafka/metadata/PartitionRegistration.java ########## @@ -180,6 +187,44 @@ public LeaderAndIsrPartitionState toLeaderAndIsrPartitionState(TopicPartition tp setIsNew(isNew); } + /** + * Returns true if this partition is reassigning. + */ + public 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. + */ + public boolean isrChangeCompletesReassignment(int[] newIsr) { Review comment: Yes, this is unused now. I'll remove it -- 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