[Bug] cannot get the right rack info since the 2.10 version
See original GitHub issueSearch before asking
- I searched in the issues and found nothing similar.
Version
2.8.x run well, but since the 2.10
version and the master branch cannot get the right rack information.
Minimal reproduce step
bookkeeperClientRackawarePolicyEnabled=true bookkeeperClientRegionawarePolicyEnabled=false
set-bookie-rack -b bookie11:3181 -g futian -r /FT --hostname bookie11:3181 set-bookie-rack -b bookie12:3181 -g futian -r /FT --hostname bookie12:3181 set-bookie-rack -b bookie13:3181 -g futian -r /FT --hostname bookie13:3181 set-bookie-rack -b bookie14:3181 -g futian -r /FT --hostname bookie14:3181 set-bookie-rack -b bookie15:3181 -g futian -r /FT --hostname bookie15:3181
set-bookie-rack -b bookie21:3181 -g longhua -r /LH --hostname bookie21:3181 set-bookie-rack -b bookie22:3181 -g longhua -r /LH --hostname bookie22:3181 set-bookie-rack -b bookie23:3181 -g longhua -r /LH --hostname bookie23:3181 set-bookie-rack -b bookie24:3181 -g longhua -r /LH --hostname bookie24:3181 set-bookie-rack -b bookie25:3181 -g longhua -r /LH --hostname bookie25:3181
set-bookie-rack -b bookie31:3181 -g longgang -r /LG --hostname bookie31:3181 set-bookie-rack -b bookie32:3181 -g longgang -r /LG --hostname bookie32:3181 set-bookie-rack -b bookie33:3181 -g longgang -r /LG --hostname bookie33:3181 set-bookie-rack -b bookie34:3181 -g longgang -r /LG --hostname bookie34:3181 set-bookie-rack -b bookie35:3181 -g longgang -r /LG --hostname bookie35:3181
What did you expect to see?
Adding a new node: /FT/bookie13:3181
as the config rack, not the default rack !!!
What did you see instead?
2022-12-09 17:40:35,293 INFO [RackawareEnsemblePlacementPolicyImpl#226] [main] Not weighted 2022-12-09 17:40:35,293 INFO [BookKeeper#527] [main] Weighted ledger placement is not enabled 2022-12-09 17:40:35,323 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie14:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie14, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,325 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie32:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie32, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,326 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie35:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie35, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,326 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie11:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie11, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,326 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie22:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie22, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,326 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie12:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie12, protocol=bookie-rpc, auth=[], extensions=[]}]} 2022-12-09 17:40:35,326 INFO [ZKRegistrationClient#270] [main-EventThread] Update BookieInfoCache (writable bookie) bookie25:3181 -> BookieServiceInfo{properties={}, endpoints=[EndpointInfo{id=bookie, port=3181, host=bookie25, protocol=bookie-rpc, auth=[], extensions=[]}]}
Anything else?
No response
Are you willing to submit a PR?
- I’m willing to submit a PR!
Issue Analytics
- State:
- Created 9 months ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
Could you cherry-pick this pr and try it again?
@horizonzy Would you please help take a look? thanks.