[
https://issues.apache.org/jira/browse/RANGER-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Madhan Neethiraj resolved RANGER-5322.
--------------------------------------
Fix Version/s: 2.8.0
Resolution: Fixed
master branch:
[https://github.com/apache/ranger/commit/ce162c78f06f7832b5f83daf58eafb862d3e5846]
ranger-2.8 branch:
https://github.com/apache/ranger/commit/4764ab2744c766e287c4058dc9d954a75509cc5f
> PolicyRefresher can struck with no download thread if exception thrown in
> startRefresher
> -----------------------------------------------------------------------------------------
>
> Key: RANGER-5322
> URL: https://issues.apache.org/jira/browse/RANGER-5322
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 2.4.0, 2.6.0, 2.7.0
> Reporter: Vyom Mani Tiwari
> Assignee: Vyom Mani Tiwari
> Priority: Critical
> Fix For: 3.0.0, 2.8.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> There is critical bug in PolicyRefresher startRefresher
> {{public void startRefresher() {}}
> {{ loadRoles();}}
> loadPolicy();
> super.start();
> {{ policyDownloadTimer = new Timer("policyDownloadTimer", true);}}
> try {
> {{ policyDownloadTimer.schedule(new DownloaderTask(policyDownloadQueue),
> pollingIntervalMs, pollingIntervalMs);}}
> }
> In the above code if loadRoles() or loadPolicy() throws any exception timer
> never get created and policies will never get downloaded.{{{{}}{}}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)