Skip to content

Commit

Permalink
#1217: lb: warn if a node has no objects after migration
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Jan 25, 2021
1 parent 92c2ee9 commit d889754
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/vt/vrt/collection/balance/lb_invoke/lb_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ LBManager::runLB(LBProxyType base_proxy, PhaseType phase) {
strat->applyMigrations(strat->getTransfers());
});

runInEpochCollective([=] {
auto node_load = theNodeStats()->getNodeLoad();
auto load = node_load->find(thePhase()->getCurrentPhase());
if (load == node_load->end() or
(load != node_load->end() and load->second.empty())) {
vt_debug_print(
lb, node,
"LBManager: node has no objects assigned after migration\n"
);
}
});

vt_debug_print(
lb, node,
"LBManager: finished migrations\n"
Expand Down

0 comments on commit d889754

Please sign in to comment.