denis-chudov commented on code in PR #778:
URL: https://github.com/apache/ignite-3/pull/778#discussion_r876839626
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -189,20 +191,18 @@ public TableManager(
};
clusterNodeResolver = topologyService::getByAddress;
- tablesVv = new VersionedValue<>(registry, HashMap::new);
- tablesByIdVv = new VersionedValue<>(registry, HashMap::new);
+ tablesByIdVv = new VersionedValue<>(null, HashMap::new);
+
+ this.schemaManager.listen(SchemaEvent.COMPLETE, (parameters, e) -> {
+ tablesByIdVv.complete(parameters.causalityToken());
Review Comment:
`SchemaEvent.COMPLETE` is fired when SchemaManager#registriesVv completes,
it means it is fired no sooner than the revision update happens.
--
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]