rameeshm commented on code in PR #732:
URL: https://github.com/apache/ranger/pull/732#discussion_r2556915062
##########
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:
Should we check on configuredURLs instead as it fetch the configured URLs?
Also what is the impact of setting setLastKnownActiveUrlIndex(0); as there is
no Url to call the end point.
--
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]