bittu9975 opened a new pull request, #8703:
URL: https://github.com/apache/gravitino/pull/8703

   This PR resolves a race condition in AuthorizationRequestContext.loadRole, 
where multiple threads could execute the role initializer concurrently.
   The fix introduces a FutureTask guarded by an AtomicReference, ensuring the 
initializer runs exactly once, even under concurrent access.
   
   A focused unit test (TestAuthorizationRequestContext) is added to verify 
that loadRole executes the initializer only once when called from multiple 
threads.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to