Sanket-Shelar opened a new pull request, #1068:
URL: https://github.com/apache/ranger/pull/1068

   …uses CME/NPE for delegated-admin User
   
   ## What changes were proposed in this pull request?
   
   Fixes concurrent policy-engine rebuilds mutating the shared cached 
RangerServiceDef during ServiceDefUtil.normalize(), which caused CME/NPE and 
getPolicyAdmin failures.
   
   Changes: Added ServiceDefUtil.copyServiceDef() (JSON deep copy) and updated 
RangerPolicyRepository to normalize a private copy of serviceDef instead of the 
cache object. Added a unit test to ensure the source is not mutated.
   
   
   ## How was this patch tested?
   
   Local build passed
   


-- 
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