Add retry for sync_point_update_input_data

update_input_data in sync_point.sync() at times fails with
DBDeadlock. Let's add retry like sync_point_create()

Change-Id: Id4468801bcffa7a704d90d2e190ec8dbb9a0a00b
Task: 36299
(cherry picked from commit ba9c42b9eb)
This commit is contained in:
Rabi Mishra 2019-08-17 09:54:37 +05:30
parent 3476f1dcfc
commit 36dab46bd5
1 changed files with 2 additions and 0 deletions

View File

@ -1548,6 +1548,8 @@ def sync_point_get(context, entity_id, traversal_id, is_update):
)
@oslo_db_api.wrap_db_retry(max_retries=3, retry_on_deadlock=True,
retry_interval=0.5, inc_retry_interval=True)
def sync_point_update_input_data(context, entity_id,
traversal_id, is_update, atomic_key,
input_data):