maobaolong commented on code in PR #1852:
URL:
https://github.com/apache/incubator-uniffle/pull/1852#discussion_r1663548147
##########
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:
@xianjingfeng I push a new commit to add a precondition check to avoid NPE.
PTAL.
--
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]