AndrewJSchofield commented on code in PR #24005:
URL: https://github.com/apache/kafka/pull/24005#discussion_r4512384388


##########
tools/src/main/java/org/apache/kafka/tools/TopicCommand.java:
##########
@@ -311,8 +311,10 @@ static class PartitionDescription {
             this.reassignment = reassignment;
         }
 
+        // Effective min ISR, capped at the replica count like 
Partition#effectiveMinIsr on the broker.

Review Comment:
   Personally, I don't like parsing the value of `metadata.version` to divine 
behaviour. Could we see if the feature `eligible.leader.replicas.version` is 
returned by describeFeatures instead? I know that there are some edge cases, 
but that does seem like less brittle. Fixing this tool for all of the 4.x 
releases is still a nice improvement.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to