Comment 12 for bug 1484784

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13711
Committed: http://github.org/Juniper/contrail-controller/commit/8c331af5256b30ec7d4aadd041286099e8ee0580
Submitter: Zuul
Branch: R2.20

commit 8c331af5256b30ec7d4aadd041286099e8ee0580
Author: Tapan Karwa <email address hidden>
Date: Wed Sep 9 09:40:35 2015 -0700

Delete state only after processing a DELETE IFMapUpdate.

There can be cases when while processing an UPDATE-IFMapUpdate dequeue event,
we find that the state is ready to be deleted. We want to wait until we have
processed the 'DELETE' IFMapUpdate event to finally delete the state.

EG: A node add, link add with that node, link delete, node delete, exporter
processes node delete before link delete i.e. dependency is still set and
exporter does not enqueue a DELETE-UPDATE-IFMapUpdate. Now, if we dequeue
UPDATE-IFMapUpdate, the state is ready to be deleted. But, we want to wait
until exporter processes the link-delete and triggers a node-change via
MaybeNotifyOnLinkDelete() to delete the state.

Change-Id: I42ebbd5a9cff824c9732c52a773b6bc9ee36dc1a
Closes-Bug: #1484784