Details
-
Bug
-
Resolution: Unresolved
-
Major
-
7.2.1
-
None
-
Untriaged
-
0
-
Unknown
Description
Currently in the adjustInitialSolutionIfNecessary function, enableExclude flag is set to falseusing the following condition
// if there is deleted node and all nodes are excluded to take in new indexes,// then do not enable node exclusion
|
if s.numDeletedNode != 0 && s.findNumExcludeInNodes() == len(s.Placement) { |
s.enableExclude = false |
}
|
|
here the condition of checking should not be len(s.Placement) rather we will need to check if all the keepNodes & all the emptyNodes (considered to be newNodes by planner) has ExcludeNode "in" enabled. This is done as initially the solution will consider even the Nodes to be ejected/deleted in the Placement slice