-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resync cache logic upon watcher reset (#305)
Fixes a race condition which in watcher is trying to re-connect and ANP is deleted by the user. In this case, when the watcher re-connect, it will not receive delete event for those objects and those objects will remain in network policy controller cache and in cloud too. Here, we introduce a resync logic in which, upon any re-connect, the cache will be resynced first and then new cache will be compared with in-memory cache to figure out stale objects and explicitly delete them. Signed-off-by: Rahul Jain <[email protected]>
- Loading branch information
1 parent
71c522a
commit 2e45df4
Showing
2 changed files
with
177 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters