vyommani opened a new pull request, #732: URL: https://github.com/apache/ranger/pull/732
## What changes were proposed in this pull request? RangerBasePlugin initialization fails with an IllegalArgumentException when the ranger.plugin.<serviceType>.policy.rest.url property is not set. The issue occurs because getConfiguredURLs() returns an empty list, causing Random.nextInt(0) to throw an exception. ## How was this patch tested? wrote a new test TestRangerRESTClient.testPluginInit_WithNoUrl_DoesNotCrash() this will place without fix and pass with fix. -- 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]
