korlov42 commented on code in PR #3653:
URL: https://github.com/apache/ignite-3/pull/3653#discussion_r1583229298
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogManagerImpl.java:
##########
@@ -182,16 +177,22 @@ public CompletableFuture<Void> startAsync() {
INITIAL_CAUSALITY_TOKEN
);
- CatalogZoneDescriptor defaultZone = fromParams(
- objectIdGen++,
- DEFAULT_ZONE_NAME
- );
+ Catalog emptyCatalog = new Catalog(0, 0L, objectIdGen, List.of(),
List.of(publicSchema, systemSchema), null);
- registerCatalog(new Catalog(0, 0L, objectIdGen, List.of(defaultZone),
List.of(publicSchema, systemSchema), defaultZone.id()));
+ registerCatalog(emptyCatalog);
updateLog.registerUpdateHandler(new OnUpdateHandlerImpl());
- return updateLog.startAsync();
+ return updateLog.startAsync()
+ .thenCompose(none -> {
+ if (latestCatalogVersion() == emptyCatalog.version()) {
+ // node have not seen any updates yet, let's try to
initialise
Review Comment:
fixed, thanks!
--
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]