Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@ private void generateMessage(final Resource resource, final BaseControllerDataPr
// resourceStateMap. This instance may not have had been dropped by the rebalance strategy.
// This check is required to ensure that the instances removed from the ideal state stateMap
// are properly dropped.
// This should only solve for instance operation case where the instance is removed from the statemap but there
// are still valid assignments in the mapping. We should not consider case where there is no mapping at all for
// the resource, which can occur on a rebalance failure. If the resource has been removed, the BP will
// contain the DROPPED states
for (String instance : currentStateMap.keySet()) {
if (!instanceStateMap.containsKey(instance)) {
if (!instanceStateMap.isEmpty() && !instanceStateMap.containsKey(instance)) {
instanceStateMap.put(instance, HelixDefinedState.DROPPED.name());
}
}
Expand Down