bookkeeper
bookkeeper copied to clipboard
Improve only one region need localNode in regionAwarePolicy
Motivation
Now in regionAwarePolicy, each region has the same localNode. Such as:
- region1 - localNode is /region1/rack1
- region2 - localNode is /region1/rack1
- region3 - localNode is /region1/rack1
This is not correct and would generate more confusing warn log in newEnsemble()
This pr is a supplement of https://github.com/apache/bookkeeper/pull/4091. We should fix the localNode not update first.
Changes
- only one region need localNode. So reset the localNode in other region
- add test