Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvscheduler: keep node in the graph during recreate
This patch fixes issues reported in ligato#1418. During recreate (Delete+Create) the node would be completely removed from the graph by Delete and all the associated flags (metadata) were therefore lost. When the subsequent Create fails, the scheduler needs to access the flags, which in this case are undefined, causing the scheduler to panic by dereferencing nil pointer. This patch ensures that the node and its flags are preserved during re-creation. An in-progress refactor of the scheduling algorithm will approach value recreation in a much cleaner way... Signed-off-by: Milan Lenco <[email protected]>
- Loading branch information