zerolbsony commented on code in PR #17279:
URL: https://github.com/apache/iotdb/pull/17279#discussion_r2944157906


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/SeriesPartitionTable.java:
##########
@@ -73,7 +73,11 @@ public Map<TTimePartitionSlot, List<TConsensusGroupId>> 
getSeriesPartitionMap()
   }
 
   public void putDataPartition(TTimePartitionSlot timePartitionSlot, 
TConsensusGroupId groupId) {
-    seriesPartitionMap.computeIfAbsent(timePartitionSlot, empty -> new 
Vector<>()).add(groupId);
+    seriesPartitionMap.computeIfAbsent(timePartitionSlot, empty -> new 
Vector<>());
+    List<TConsensusGroupId> groupList = 
seriesPartitionMap.get(timePartitionSlot);
+    if (!groupList.contains(groupId)) {
+      groupList.add(groupId);

Review Comment:
   Changed yet



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

Reply via email to