gianm commented on code in PR #12908:
URL: https://github.com/apache/druid/pull/12908#discussion_r996193989


##########
server/src/main/java/org/apache/druid/rpc/ServiceClientImpl.java:
##########
@@ -200,7 +200,12 @@ public void onSuccess(@Nullable final 
Either<StringFullResponseHolder, FinalType
                         final String newUri = 
result.error().getResponse().headers().get("Location");
 
                         if (redirectCount >= MAX_REDIRECTS) {
-                          retVal.setException(new RpcException("Service [%s] 
issued too many redirects", serviceName));
+                          retVal.setException(new RpcException(
+                              "Service [%s] redirected too many times [%d] to 
invalid url %s",

Review Comment:
   The error message here isn't right: the url isn't known to be invalid at 
this point. It may very well be valid. It just exceeded the limit on number of 
redirects.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to