[
https://issues.apache.org/jira/browse/RANGER-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyom Mani Tiwari updated RANGER-5322:
-------------------------------------
Description:
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.{{{{}}{}}}
was:
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.{{{{}}{}}}
> 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
>
>
> 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)