korlov42 commented on code in PR #3653:
URL: https://github.com/apache/ignite-3/pull/3653#discussion_r1579707204
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/storage/NewZoneEntry.java:
##########
@@ -72,13 +72,17 @@ public CatalogEventParameters createEventParameters(long
causalityToken, int cat
public Catalog applyUpdate(Catalog catalog, long causalityToken) {
descriptor.updateToken(causalityToken);
+ int defaultZoneId = catalog.defaultZone() != null
+ ? catalog.defaultZone().id()
+ : descriptor.id();
Review Comment:
if default zone is not specified, the next created zone will be promoted as
default. This basically means that the first created zone will become default
one. Also, this will work as self-healing in case we lose default zone for some
reason (at the moment due to a some failure)
--
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]