only update topology when bookie rack changed
authorgaozhangmin <gaozhangmin456@qq.com>
Wed, 6 Apr 2022 15:58:47 +0000 (23:58 +0800)
committerGitHub <noreply@github.com>
Wed, 6 Apr 2022 15:58:47 +0000 (17:58 +0200)
commit67c963a1b02de04166778d906f4cffe89dd86562
treeb88ff618a6e7ea2790ea70b3fc10f5c4f192ea65
parent139eed311393c7077db6e7470c0f167e16b6b3b0
only update topology when bookie rack changed

It is unnecessary to update  topology, removing and adding the same bookieNode, if the rack of bookie stay unchanged.

Reviewers: Yong Zhang <zhangyong1025.zy@gmail.com>, Nicolò Boschi <boschi1997@gmail.com>, Andrey Yegorov <None>, ZhangJian He <shoothzj@gmail.com>, Enrico Olivelli <eolivelli@gmail.com>

This closes #2790 from gaozhangmin/remove-unnecessary-update-rack
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/TopologyAwareEnsemblePlacementPolicy.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestRackawareEnsemblePlacementPolicy.java