GitHub user benjumanji edited a discussion: region aware ensemble placement 
(e=3,w=3,a=2) can't create new ledgers.

I have the following config (shortened for brevity) on pulsar 4.0.1

```
bookkeeperClientRegionawarePolicyEnabled=true
reppRegionsToWrite=euw1-az3;euw1-az1;euw1-az2
reppMinimumRegionsForDurability=2
```

I have at least three bookies. If I try the aforementioned policy (e3,w3,a2) 
then the exception here: 
https://github.com/apache/bookkeeper/blob/0748423e3228f7cf61d2e1f2ab11e354ed84c0df/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RegionAwareEnsemblePlacementPolicy.java#L317
 is thrown. This makes little sense to me as `2 <= 3 - 3/2` evaluates to true. 
I am tempted to open an issue to suggest that the parameters used in the 
expression are logged in the exception, but that doesn't help me today :) 
Looking at the class instantiating the placement policy 
https://github.com/apache/pulsar/blob/12b057999f5674ae6da6b04ff8bd212d1904cc88/pulsar-broker/src/main/java/org/apache/pulsar/broker/BookKeeperClientFactoryImpl.java#L179
 I can't see any obvious mistakes on my part.

Any thoughts?

GitHub link: https://github.com/apache/pulsar/discussions/23913

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to