rickyma commented on code in PR #1852:
URL: 
https://github.com/apache/incubator-uniffle/pull/1852#discussion_r1669816744


##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/proxy/WebProxyServlet.java:
##########
@@ -45,7 +45,8 @@ protected String rewriteTarget(HttpServletRequest 
clientRequest) {
     String targetAddress =
         
coordinatorServerAddressesMap.get(clientRequest.getHeader("targetAddress"));
     if (targetAddress == null) {
-      return null;
+      // Get random one from coordinatorServerAddressesMap
+      targetAddress = coordinatorServerAddressesMap.values().iterator().next();

Review Comment:
   Maybe: 
   ```
   Preconditions.checkArgument(coordinatorServerAddressesMap.isEmpty(), "No 
coordinator server address found.");
   ```



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