Skip to content

Commit

Permalink
[FLINK-14701][runtime] Fix MultiTaskSlot to not remove slots which ar…
Browse files Browse the repository at this point in the history
…e not its children
  • Loading branch information
zhuzhurk authored and tillrohrmann committed Jan 23, 2020
1 parent 772d83e commit 0bdd21a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,9 @@ private void releaseChild(AbstractID childGroupId) {
TaskSlot child = children.remove(childGroupId);

if (child != null) {
allTaskSlots.remove(child.getSlotRequestId());
if (child == allTaskSlots.get(child.getSlotRequestId())) {
allTaskSlots.remove(child.getSlotRequestId());
}

// Update the resources of this slot and the parents
releaseResource(child.getReservedResources());
Expand Down

0 comments on commit 0bdd21a

Please sign in to comment.