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

   **BUG REPORT**
   RegionAwareEnsemblePlacementPolicy#onBookieRackChange didn't update 
perRegionPlacement.
   There are 4 bookies `bookie-0`,`bookie-1`,`bookie-2`,`bookie-3`. 
   The rack info: 
`bookie-0:us-east-1a/rack-1`,`bookie-1:us-east-1b/rack-1`,`bookie-2:us-east-1a/rack-1`,`bookie-3:us-east-1b/rack-1`.
   
   Use pulsar-admin to update the `bookie0` rack info.
   ```
   bin/pulsar-admin bookies set-bookie-rack --bookie bookie-0:3181 --hostname 
bookie-0 --rack us-east-1c/rack-1
   ```
   After updating the rack info, the RegionAwareEnsemblePlacementPolicy log 
show that the `bookie0` rack is still `us-east-1a/rack-1`, not 
`us-east-1c/rack-1`.
   ```
   Region us-east-1a allocating bookies with ensemble size 1 and write quorum 
size 1 : [bookie-0:3181]
   Region us-east-1a allocating bookies with ensemble size 1 and write quorum 
size 1 : [bookie-2:3181]
   Region us-east-1b allocating bookies with ensemble size 1 and write quorum 
size 1 : [bookie-1:3181]
   ```
   


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