-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Race condition between route handling and VRF subscription
As part of fix for 1563550, fix for one corner case is missed. Consider the case where 1. route add operation is enqueued to DB, 2. unsubscribe for the instance is received, 3. membership manager API to unregister table is called, membership managers starts leave and part of the table is walked but membership manager has not yet removed IPeerRib, 4. Route add request is processed and path gets added. Fix: 1. Reset the subscription gen id when unregister request is handled. i.e. before starting the walk. This will ensure that delayed route add is rejected. 2. Add UT cases to validate above mentioned scenario Change-Id: Ic12259b852227c1f199a67611da49a3563010026 Closes-Bug: #1574169 (cherry picked from commit 315c60b)
- Loading branch information
Showing
4 changed files
with
68 additions
and
4 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
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