-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: I85e567181cdeefde0a9ef91cd460cd200e79bdba
- Loading branch information
Eric Fried
committed
Jan 31, 2019
1 parent
f4ec394
commit 6443aba
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters