kgusakov commented on code in PR #2157:
URL: https://github.com/apache/ignite-3/pull/2157#discussion_r1226381748
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -565,11 +571,17 @@ private CompletableFuture<?>
onTableCreate(ConfigurationNotificationEvent<TableV
DistributionZoneView zone =
getZoneById(distributionZonesConfiguration,
(ctx.newValue()).zoneId()).value();
- List<Set<Assignment>> assignments =
AffinityUtils.calculateAssignments(
- // TODO:
https://issues.apache.org/jira/browse/IGNITE-19425 use data nodes from
DistributionZoneManager instead.
-
baselineMgr.nodes().stream().map(ClusterNode::name).collect(toList()),
- zone.partitions(),
- zone.replicas());
+ List<Set<Assignment>> assignments;
+
+ if (partitionAssignments(vaultManager, ctx.newValue().id(), 0) !=
null) {
Review Comment:
Added a comment. Not sure about the temporary or not, but in any case - if
we already has assignments we shouldn't recalculate it again on recovery.
--
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]