nicolasguyomar commented on code in PR #12394:
URL: https://github.com/apache/kafka/pull/12394#discussion_r919723479
##########
core/src/main/scala/kafka/cluster/Partition.scala:
##########
@@ -1154,8 +1154,9 @@ class Partition(val topicPartition: TopicPartition,
// Avoid writing to leader if there are not enough insync replicas
to make it safe
if (inSyncSize < minIsr && requiredAcks == -1) {
- throw new NotEnoughReplicasException(s"The size of the current ISR
${partitionState.isr} " +
- s"is insufficient to satisfy the min.isr requirement of $minIsr
for partition $topicPartition")
+ throw new NotEnoughReplicasException(s"The size of the current ISR
: $inSyncSize " +
Review Comment:
Hello @hachikuji , thank you for chiming in
While reviewing that part of the code history I understand the count was
added on purpose, and not as a mistake done doing refactoring etc, that is why
I kept it
I'm not sure it's useful, from my POV it would be best from a
troubleshooting perspective to know which broker is out of ISR, but I wanted to
keep that contribution simple :)
--
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]