akhileshchg opened a new pull request, #12628:
URL: https://github.com/apache/kafka/pull/12628

   KAFKA-14214: Introduce read-write lock to StandardAuthorizer for consistent 
ACL reads.
   
   The issue with StandardAuthorizer#authorize is, that it looks up
   aclsByResources (which is of type ConcurrentSkipListMap)twice for every
   authorize call and uses Iterator with weak consistency guarantees on top of
   aclsByResources. This can cause the authorize function call to process the
   concurrent writes out of order.
   
   Implemented ReadWrite lock at StandardAuthorizer level to make sure the reads
   are strongly consistent with write order.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to