Open Bolodya1997 opened 3 years ago
@edwarnicke @denis-tingaikin It seems to be critical, please take a look.
I think we can create an helper function that will call cancel if context has been expired during resource allocation.
@edwarnicke Please share your thoughts on this issue.
Expected Behavior
sdk-vpp
shouldn't leak any resources.Current Behavior
sdk-vpp
sometimes leaks VPP resources in case of context canceled/timeout:It affects almost every
sdk-vpp
chain element, so it looks like a critical issue.Failure Logs
forwarder.log
context deadline exceeded
in tap chain element.VPPApiError: netlink error (-145)
because of already existing kernel interface with the requested name.Possible solution
We should probably do something like the following in all
sdk-vpp
chain elements which allocates some VPP resources: