EmmyMiao87 commented on a change in pull request #5521:
URL: https://github.com/apache/incubator-doris/pull/5521#discussion_r601147840



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java
##########
@@ -781,11 +782,16 @@ public void releaseBackends(String clusterName, boolean 
isReplay) {
             }
         }
 
+
         // if more than one backend exists in same host, select a backend at 
random
         List<Backend> backends = Lists.newArrayList();
         for (List<Backend> list : backendMaps.values()) {
-            Collections.shuffle(list);
-            backends.add(list.get(0));
+            if (FeConstants.runningUnitTest) {
+                backends.addAll(list);

Review comment:
       If it is a test, add all the backends belonging to this ip.




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

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