sentry
sentry copied to clipboard
fixed log message for privilege revocation
When revokeAllPrivilegesIfRequired
gets called, the variable consecutiveUpdateFailuresCount
does get set to 0
before the log message is written.
This causes the logs to always show that the cache update failed for 0 times:
RROR org.apache.sentry.provider.db.generic.UpdatableCache: Failed to update roles and privileges cache for 0 times. Revoking all privileges from cache, which will cause all authorization requests to fail.