nizhikov commented on code in PR #12840:
URL: https://github.com/apache/ignite/pull/12840#discussion_r2916063512


##########
modules/core/src/main/java/org/apache/ignite/dump/DumpReader.java:
##########
@@ -365,9 +366,19 @@ private static GridKernalContext 
standaloneKernalContext(SnapshotFileTree sft, I
     private GroupsConfigs groupsConfigs(Dump dump) {
         Map<Integer, List<String>> grpsToNodes = new HashMap<>();
         List<StoredCacheData> ccfgs = new ArrayList<>();
+        Map<Integer, String> grpIdToName = new HashMap<>();
 
         Set<Integer> grpIds = cfg.groupNames() != null
-            ? 
Arrays.stream(cfg.groupNames()).map(CU::cacheId).collect(Collectors.toSet())
+            ? Arrays.stream(cfg.groupNames())
+                .map(grpName -> {
+                    int grpId = CU.cacheId(grpName);
+
+                    if (!grpIdToName.containsKey(grpId))

Review Comment:
   `if (!grpIdToName.containsKey(grpId))` - redundant check. Let's remove it.



##########
modules/core/src/main/java/org/apache/ignite/dump/DumpReader.java:
##########
@@ -392,11 +403,14 @@ private GroupsConfigs groupsConfigs(Dump dump) {
                 }
 
                 grpsToNodes.get(grp).add(meta.folderName());
+
+                if (!grpIdToName.containsKey(grp))

Review Comment:
   `if (!grpIdToName.containsKey(grpId))` - redundant check. Let's remove it.



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