yurinaryshkin commented on code in PR #11014:
URL: https://github.com/apache/ignite/pull/11014#discussion_r1376128020
##########
modules/core/src/main/java/org/apache/ignite/dump/DumpReader.java:
##########
@@ -108,11 +109,22 @@ public DumpReader(DumpReaderConfiguration cfg,
IgniteLogger log) {
AtomicBoolean skip = new AtomicBoolean(false);
+ Map<Integer, Set<Integer>> groups = cfg.skipCopies() ? new
HashMap<>() : null;
+
for (Map.Entry<Integer, List<String>> e :
grpToNodes.entrySet()) {
int grp = e.getKey();
for (String node : e.getValue()) {
for (int part : dump.partitions(node, grp)) {
+ if (groups != null && !groups.computeIfAbsent(grp,
key -> new HashSet<>()).add(part)) {
+ if (log.isDebugEnabled()) {
Review Comment:
Changed
##########
modules/core/src/main/java/org/apache/ignite/dump/DumpReaderConfiguration.java:
##########
@@ -58,12 +58,15 @@ public class DumpReaderConfiguration {
/** Cache group names. */
private String[] cacheGroupNames;
+ /** Skip copies. */
+ private boolean skipCopies;
Review Comment:
Yes. Updated.
--
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]