akash-gupta2813 opened a new pull request, #1377:
URL: https://github.com/apache/ranger/pull/1377

   ## What changes were proposed in this pull request?
   registered PdpServiceAccountRefreshBootstrap on ResourceConfig; Jersey drops 
it as a non-provider, so startServiceAccountUsersRefresh() never ran (seen on 
AWC sarath ranger-pdp:2.0.0-b.157).
   Start/stop refresh from RangerPdpREST @PostConstruct / @PreDestroy after 
static delegation init; remove the unused bootstrap class.
   Jersey only treats register(SomeClass) as a JAX-RS provider (resource, 
Feature, filter, etc.). PdpServiceAccountRefreshBootstrap is a plain @Singleton 
with javax @PostConstruct — no JAX-RS contract — so you get:
   provider … PdpServiceAccountRefreshBootstrap … does not implement any 
provider interfaces … will be ignored
   HK2 never instantiates it, so 
rangerPdpREST.startServiceAccountUsersRefresh() never runs despite 
serviceaccount.refresher.enabled=true.
   
   ## How was this patch tested?
   manual test
   


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