[NETVIRT-1075] NeutronvpnUtils: handle transactions with jobCoordinator to avoid blocking Created: 01/Feb/18 Updated: 25/Nov/19 Resolved: 25/Nov/19 |
|
| Status: | Resolved |
| Project: | netvirt |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Magnesium |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Valentina Krasnobaeva | Assignee: | Valentina Krasnobaeva |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Now we are using in NeutronvpnUtils: updateVpnInstanceOpWithType blocking transaction: VpnInstanceOpDataEntryBuilder builder = new VpnInstanceOpDataEntryBuilder(vpnInstanceOpDataEntry); .... And the same in some other methods. It will be better to refactor NeutronvpnUtils, and to use async transactions handeled by jobCoordinator as much as possible, to avoid blocking
|
| Comments |
| Comment by Philippe Guibert [ 02/Feb/18 ] |
|
as illustration, the following code extract shows how to go from sync mode to async mode:
|