horizonzy opened a new issue, #21326:
URL: https://github.com/apache/pulsar/issues/21326

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   master
   
   ### Minimal reproduce step
   
   The broker.conf content.
   ```
   bookkeeperClientEnforceMinNumRacksPerWriteQuorum: "true"  
   bookkeeperClientRackawarePolicyEnabled: "true"  
   bookkeeperClientMinNumRacksPerWriteQuorum: "2"  
   managedLedgerDefaultEnsembleSize: "2"  
   managedLedgerDefaultWriteQuorum: "2"  
   managedLedgerDefaultAckQuorum: "2"
   ```
   
   
   1. using `bin/pulsar-admin bookies set-bookie-rack` to config bookie rack 
info.
   2. using `bin/pulsar-admin namespaces set-bookie-affinity-group` to 
configure the primary group.
   3. Start a producer
   4. Observe the property 
`ZkIsolatedBookieEnsemblePlacementPolicy#enforceMinNumRacksPerWriteQuorum`, the 
value is `false`, instead of `true`.
   
   
   ### What did you expect to see?
   
   The `enforceMinNumRacksPerWriteQuorum` should be passing into 
ZkIsolatedBookieEnsemblePlacementPolicy.
   
   ### What did you see instead?
   
   The `enforceMinNumRacksPerWriteQuorum` not be passing into 
ZkIsolatedBookieEnsemblePlacementPolicy.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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