mneethiraj commented on code in PR #732:
URL: https://github.com/apache/ranger/pull/732#discussion_r2599768813


##########
agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRESTClient.java:
##########
@@ -110,9 +110,13 @@ public RangerRESTClient(String url, String 
sslConfigFileName, Configuration conf
         mUrl               = url;
         mSslConfigFileName = sslConfigFileName;
         configuredURLs     = StringUtil.getURLs(mUrl);
-
-        setLastKnownActiveUrlIndex((new 
Random()).nextInt(getConfiguredURLs().size()));
-
+        int size = getConfiguredURLs().size();

Review Comment:
   @vyommani  - this is indeed a configuration issue. An exception with 
appropriate message will be better than the current exception:
   
   ```
   if (StringUtils.isBlank(url)) {
     throw new IllegalArgumentException("Ranger URL is null or empty. Likely 
caused by incorrect configuration"); 
   }
   ```



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