CalvinConfluent opened a new pull request, #12982: URL: https://github.com/apache/kafka/pull/12982
Even if the follower is the ISR, the follower will be excluded because the logEndOffset (-1) is less than the fetchOffset (0) ``` if (partition.inSyncReplicaIds.contains(replica.brokerId) && replicaState.logEndOffset >= fetchOffset && replicaState.logStartOffset <= fetchOffset) ``` https://github.com/CalvinConfluent/kafka/blob/trunk/core/src/main/scala/kafka/server/ReplicaManager.scala#L1252 So the test needs to update its logEndOffset by appending one message. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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