xtern commented on code in PR #3590:
URL: https://github.com/apache/ignite-3/pull/3590#discussion_r1562601250
##########
modules/index/src/test/java/org/apache/ignite/internal/index/IndexAvailabilityControllerTest.java:
##########
@@ -98,7 +98,11 @@ void setUp() {
assertThat(allOf(metaStorageManager.start(), catalogManager.start()),
willCompleteSuccessfully());
assertThat(metaStorageManager.deployWatches(),
willCompleteSuccessfully());
- CatalogZoneDescriptor zoneDescriptor =
catalogManager.zone(DEFAULT_ZONE_NAME, clock.nowLong());
+ Catalog catalog =
catalogManager.catalog(catalogManager.latestCatalogVersion());
Review Comment:
Thanks, fixed.
##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItZoneDdlTest.java:
##########
@@ -142,4 +269,20 @@ private static void tryToAlterZone(String zoneName, int
dataNodesAutoAdjust, boo
failIfNotExists ? zoneName : "IF EXISTS " + zoneName,
dataNodesAutoAdjust
));
}
+
+ private static void tryToSetDefaultZone(String zoneName, boolean
failIfNotExists) {
+ sql(format(
+ "ALTER ZONE {} SET DEFAULT ",
+ failIfNotExists ? zoneName : "IF EXISTS " + zoneName
+ ));
+ }
+
+ @SuppressWarnings("resource")
+ private static Catalog latestCatalog() {
+ IgniteImpl node = CLUSTER.aliveNode();
+ CatalogManager catalogManager = node.catalogManager();
+ Catalog catalog =
catalogManager.catalog(catalogManager.latestCatalogVersion());
Review Comment:
Thanks, fixed.
--
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]