yiguolei commented on code in PR #9172:
URL: https://github.com/apache/incubator-doris/pull/9172#discussion_r861577375


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/BrokerMgr.java:
##########
@@ -306,6 +306,22 @@ public void replayDropAllBroker(String name) {
         }
     }
 
+    public void replayUpdateBrokerInfo(String name, List<FsBroker> brokers) {
+        lock.lock();
+        try {
+            for (FsBroker oldBroker : brokerListMap.get(name)) {
+                for (FsBroker newBroker : brokers) {
+                    if (oldBroker.hostName != null && 
oldBroker.hostName.equals(newBroker.hostName)
+                        && oldBroker.port == newBroker.port) {
+                        oldBroker.ip = newBroker.ip;

Review Comment:
   something is wrong here. brokermap has ip-->broker. If changed ip here, 
should also change the map.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to