forked from RamenDR/ramen
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add retry attempts in case of PlacementDecision name conflicts
As we create a PlacementDecision if we do not find one, it could lead to conflicts on the name. This commit adds a retry with different index values for the name, with a cap count of 5, to ensure some defence against conflicts. An ideal case would be to just use a uuid as the index, and avoid conflicts across, but that needs some confirmation with OCM on the PlacementDecision naming scheme and hence is not done at present. Signed-off-by: Shyamsundar Ranganathan <[email protected]> (cherry picked from commit f9514cc)
- Loading branch information
1 parent
f95bdaf
commit b000cb7
Showing
2 changed files
with
58 additions
and
24 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