deardeng commented on code in PR #53192:
URL: https://github.com/apache/doris/pull/53192#discussion_r2204218499


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java:
##########
@@ -168,35 +167,28 @@ private class TransferPairInfo {
         public long destBe;
         public long minTabletsNum;
         public long maxTabletsNum;
-        public boolean srcDecommissioned;
     }
 
     public Set<Long> getSnapshotTabletsInPrimaryByBeId(Long beId) {
         Set<Long> tabletIds = Sets.newHashSet();
-        Set<Tablet> tablets = beToTabletsGlobal.get(beId);
-        if (tablets != null) {
-            for (Tablet tablet : tablets) {
-                tabletIds.add(tablet.getId());
-            }
+        Set<Tablet> tablets = new HashSet<>(beToTabletsGlobal.get(beId)); // 
Create a copy

Review Comment:
   don't worry, statRouteInfo also use copy ,
   beToTabletsGlobal = tmpBeToTabletsGlobal;
   



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