You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add lock to subnet to avoid race between gc and controller (vmware-tanzu#770)
Subnetport/pod controller will acquire a subnet, create nsx subnetport on it and
save the subnetport to store after it is created. But Subnetset GC may delete the
subnet during the subnetport creation
The PR adds locks for subnet by subnet path to avoid this race condition.
Testing done:
Decreased the subnetset garbage collector running interval to 10 seconds to increase
the potential of race. Created 8 pods, waited for all related subnetports created without
error and delete the pods. Repeated for 5 times and not found deadlock or race issue.
Signed-off-by: Yanjun Zhou <[email protected]>
0 commit comments