Commit 6443aba
Eric Fried
Move retry from _update to _update_to_placement
It was noted [1] that we don't need to wrap all of _update in a retry on
ResourceProviderUpdateConflict; only _update_to_placement can raise that
exception, and that exception only indicates a need to redrive with data
ret-GETted from within that method. So this patch moves the retry
decorator further in, to _update_to_placement, to avoid the additional
redundant compute node and pci tracker writes.
[1] https://review.openstack.org/#/c/615705/20/nova/compute/resource_tracker.py@974
Change-Id: I85e567181cdeefde0a9ef91cd460cd200e79bdba1 parent f4ec394 commit 6443aba
File tree
2 files changed
+13
-7
lines changed- nova
- compute
- tests/unit/compute
2 files changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
916 | 919 | | |
917 | 920 | | |
918 | 921 | | |
| |||
969 | 972 | | |
970 | 973 | | |
971 | 974 | | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
1479 | | - | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1480 | 1481 | | |
1481 | 1482 | | |
1482 | 1483 | | |
| |||
1497 | 1498 | | |
1498 | 1499 | | |
1499 | 1500 | | |
| 1501 | + | |
| 1502 | + | |
1500 | 1503 | | |
1501 | | - | |
1502 | | - | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1503 | 1507 | | |
1504 | 1508 | | |
1505 | 1509 | | |
| |||
1521 | 1525 | | |
1522 | 1526 | | |
1523 | 1527 | | |
| 1528 | + | |
| 1529 | + | |
1524 | 1530 | | |
1525 | 1531 | | |
1526 | 1532 | | |
| |||
0 commit comments