Gooch0922 opened a new pull request, #534: URL: https://github.com/apache/ranger/pull/534
… version changes in scenarios with many plugin clients ## What changes were proposed in this pull request? The purpose of this change is to address the issue of redundant role cache modifications in concurrent scenarios, as described in [ranger - 5148]. After acquiring the lock, a check is performed to determine whether the role version number in the cache is already greater than or equal to the version number retrieved from the database. If this condition evaluates to true, the cached data can be directly returned. ## How was this patch tested? I manually tested this patch. Through means like debugging and with the help of tools such as JMeter, I simulated concurrent request scenarios. In these scenarios, threads competing for the lock will either directly access the cache or print the contents of the patch in the debug logs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org