-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Policy Base Routing failure; Possible table ID collision. #588
Conversation
New solution based on this hint: #583 (comment) |
pkg/kernel/networkservice/connectioncontextkernel/ipcontext/iprule/common.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ljkiraly Could you apply fixes for the comment https://github.com/networkservicemesh/sdk-kernel/pull/588/files#r1227954152?
ps[tableID] = policy | ||
tableIDs.Store(connID, ps) | ||
// release the lock | ||
nsRTableNextIDToConnID.Delete(nsrtid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nsRTableNextIDToConnID.Delete(nsrtid) |
This could be removed
Related issue: networkservicemesh/deployments-k8s/issues/9119 Added a mechanism to protect table ID selection from parallel runs. Signed-off-by: Laszlo Kiraly <[email protected]>
…k-kernel@main PR link: networkservicemesh/sdk-kernel#588 Commit: 61983f6 Author: Denis Tingaikin Date: 2023-06-16 02:43:39 +0300 Message: - Merge pull request #588 from Nordix/fix-sync-pbr Signed-off-by: NSMBot <[email protected]>
…k-kernel@main PR link: networkservicemesh/sdk-kernel#588 Commit: 61983f6 Author: Denis Tingaikin Date: 2023-06-16 02:43:39 +0300 Message: - Merge pull request #588 from Nordix/fix-sync-pbr Signed-off-by: NSMBot <[email protected]>
…k-kernel@main PR link: networkservicemesh/sdk-kernel#588 Commit: 61983f6 Author: Denis Tingaikin Date: 2023-06-16 02:43:39 +0300 Message: - Merge pull request #588 from Nordix/fix-sync-pbr Signed-off-by: NSMBot <[email protected]>
Related issue: networkservicemesh/deployments-k8s/issues/9119
Added a mechanism to protect table ID selection from parallel runs.