peterxcli opened a new pull request, #17955:
URL: https://github.com/apache/kafka/pull/17955

   In kraft the [replicas 
algorithm](https://github.com/apache/kafka/blob/trunk/metadata/src/main/java/org/apache/kafka/metadata/placement/StripedReplicaPlacer.java#L156)
 includes some randomization, so we should not deterministic assert
   
   testing:
   1. For testReplicaPlacementAllServers:
       - Each partition should have exactly 4 replicas
       - All replicas should be chosen from brokers 0-3
       - Each partition should have a leader
       - The leader should be one of the replicas
   2. For testReplicaPlacementPartialServers:
       - Each partition should have exactly 2 replicas
       - All replicas should be chosen from brokers 0-3
       - Each partition should have a leader
       - The leader should be one of the replicas
   
   
   ### 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

Reply via email to