sergeyuttsel commented on code in PR #2157:
URL: https://github.com/apache/ignite-3/pull/2157#discussion_r1224503073
##########
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:
Looks like some kind of magic. Please add a comment if possible. Is this a
temporary or permanent solution? Getting nodes from zone manager will fix this
or not?
--
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]