Vyom Mani Tiwari created RANGER-5322:
----------------------------------------
Summary: 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.7.0, 2.6.0, 2.4.0
Reporter: Vyom Mani Tiwari
Assignee: Vyom Mani Tiwari
Fix For: 3.0.0
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 neven get downloaded.{{{}{}}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)