ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-16271. Increase retry count for ranger functions.(vbrodetskyi)
Date Wed, 11 May 2016 08:01:44 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 19aaa641c -> 58badf8d6


AMBARI-16271. Increase retry count for ranger functions.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/58badf8d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/58badf8d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/58badf8d

Branch: refs/heads/trunk
Commit: 58badf8d6a0d86d32cbd17a4e3fdc68c4afe90aa
Parents: 19aaa64
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Wed May 11 08:45:46 2016 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Wed May 11 08:45:46 2016 +0300

----------------------------------------------------------------------
 .../resource_management/libraries/functions/ranger_functions.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/58badf8d/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py
b/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py
index 40f75f7..48ae225 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py
@@ -222,7 +222,7 @@ class Rangeradmin:
     except TimeoutError:
       raise Fail("Connection to Ranger Admin failed. Reason - timeout")
 
-  @safe_retry(times=5, sleep_time=8, backoff_factor=1.5, err_class=Fail, return_on_fail=None)
+  @safe_retry(times=75, sleep_time=8, backoff_factor=1.5, err_class=Fail, return_on_fail=None)
   def get_policy_by_repo_name(self, name, component, status, usernamepassword):
     """
     :param name: repository name
@@ -255,7 +255,7 @@ class Rangeradmin:
     except TimeoutError:
       raise Fail("Connection to Ranger Admin failed. Reason - timeout")
 
-  @safe_retry(times=5, sleep_time=8, backoff_factor=1.5, err_class=Fail, return_on_fail=None)
+  @safe_retry(times=75, sleep_time=8, backoff_factor=1.5, err_class=Fail, return_on_fail=None)
   def update_ranger_policy(self, policyId, data, usernamepassword):
     """
     :param policyId: policy id which needs to be updated


Mime
View raw message