bug: enhance asyncio concurrency safety per EVC #140
Labels
bug
Something isn't working
future_release
Planned for the next release
priority_major
Major priority
Many of the subscribed events need better asyncio concurrency safety per EVC or per bulk of EVCs, example:
"kytos/mef_eline.deployed"
:https://github.com/kytos-ng/telemetry_int/blob/master/main.py#L434
https://github.com/kytos-ng/telemetry_int/blob/master/main.py#L446
When redeploying might end up retrying some related HTTP requests, in which case the final execution of this event might end up delayed, which might or not be a problem. In certain cases if other subsequent EVC event happens it can cause major issues.
Normally, the HTTP server will be able to promptly respond, and mef_eline when generating subsequent events is also following its locks, so the chance for this to occur isn't too high, however, the application can't keep relying on these premises and asyncio locks need to be used here. Same comment for the other similar events.
The text was updated successfully, but these errors were encountered: