ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Agrawal <pradeepagrawal8...@gmail.com>
Subject Review Request 69238: RANGER-2275: Make db_setup retry delay configurable
Date Fri, 02 Nov 2018 06:05:00 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for ranger, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Nikhil P, Ramesh
Mani, and Velmurugan Periasamy.

Bugs: RANGER-2275

Repository: ranger


**Problem Statement**: In an HA setup, Ranger Admin on both master nodes attempts to create/patch
the DB and change passwords. If one of them detects contention for an operation, it sleeps
and re-checks later. The length of sleep is fixed at 120 seconds

It would be better to make this delay configurable (in seconds) so that user can adjust the
delay value as per his environment.

**Proposed Solution:**

The proposed patch introduces a parameter 'PATCH_RETRY_INTERVAL' in install.properties file
which has default value 120 seconds.
This property is read during the run of db_setup.py and script shall set 'retryPatchAfterSeconds'
variable with the given value of 'PATCH_RETRY_INTERVAL'.

If PATCH_RETRY_INTERVAL is not a number then default value will be 120.
If PATCH_RETRY_INTERVAL is removed then default value will be 120.


  security-admin/scripts/db_setup.py 3450fa690 
  security-admin/scripts/install.properties 30b946b31 

Diff: https://reviews.apache.org/r/69238/diff/1/


Tested patch on local env by setting different values in the property PATCH_RETRY_INTERVAL.


Pradeep Agrawal

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message