sanpwc commented on code in PR #2432:
URL: https://github.com/apache/ignite-3/pull/2432#discussion_r1291453401
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/Catalog.java:
##########
@@ -132,11 +132,11 @@ public Collection<CatalogIndexDescriptor> indexes() {
return indexesById.values();
}
- public CatalogZoneDescriptor zone(String name) {
+ public @Nullable CatalogZoneDescriptor zone(String name) {
return zonesByName.get(name);
}
- public CatalogZoneDescriptor zone(int zoneId) {
+ public @Nullable CatalogZoneDescriptor zone(int zoneId) {
Review Comment:
Well the answer occurred to be misleading. Seems that
org.apache.ignite.internal.catalog.Catalog is itself a snapshot.
```
public @Nullable CatalogZoneDescriptor zone(int zoneId, int
catalogVersion) {
return catalog(catalogVersion).zone(zoneId);
}
```
--
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]