Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ public void run() {

private void revokeAllPrivilegesIfRequired() {
if (++consecutiveUpdateFailuresCount > allowedUpdateFailuresCount) {
consecutiveUpdateFailuresCount = 0;
// Clear cache to revoke all privileges.
// Update table cache to point to an empty table to avoid thread-unsafe characteristics of HashBasedTable.
this.table = HashBasedTable.create();
LOGGER.error("Failed to update roles and privileges cache for " + consecutiveUpdateFailuresCount + " times." +
" Revoking all privileges from cache, which will cause all authorization requests to fail.");
consecutiveUpdateFailuresCount = 0;
}
}

Expand Down