Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8EC332004CA for ; Wed, 11 May 2016 10:01:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8CE2B1602BF; Wed, 11 May 2016 08:01:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DCC6F1602BE for ; Wed, 11 May 2016 10:01:45 +0200 (CEST) Received: (qmail 55117 invoked by uid 500); 11 May 2016 08:01:44 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 55108 invoked by uid 99); 11 May 2016 08:01:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 08:01:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9D57EDFB14; Wed, 11 May 2016 08:01:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vbrodetskyi@apache.org To: commits@ambari.apache.org Message-Id: <2a919c5c177240a38a707b7342b012af@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-16271. Increase retry count for ranger functions.(vbrodetskyi) Date: Wed, 11 May 2016 08:01:44 +0000 (UTC) archived-at: Wed, 11 May 2016 08:01:46 -0000 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 Authored: Wed May 11 08:45:46 2016 +0300 Committer: Vitaly Brodetskyi 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