Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
mds/MDBalancer: remove useless check_targets and hit_targets logic from MDS balancer #15407
Currently Multiple MDSes fail to do rebalance because MDS's export_targets in MDSMap are empty even if they need to do rebalance.
The reason is that we didn't update MDSRank's export_targets according to balance state, then MDSRank's tick won't update MDSMap's export_targets to Mon. And the new function MDBalancer::hit_targets should be aimed to do such things, but it hadn't been called at anywhere.
Signed-off-by: Zhi Zhang firstname.lastname@example.org
MDBalancer::hit_targets were mistakenly left in after the change to have the Migrator check and hit export targets before performing migration. The MDBalancer should not need to handle this anymore. Can you go ahead and remove all of that logic from the balancer.