tkalkirill commented on code in PR #2691:
URL: https://github.com/apache/ignite-3/pull/2691#discussion_r1361484057
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/storage/MakeIndexAvailableEntry.java:
##########
@@ -72,16 +73,60 @@ public CatalogEvent eventType() {
@Override
public CatalogEventParameters createEventParameters(long causalityToken,
int catalogVersion) {
- return new MakeIndexAvailableEventParameters(causalityToken,
catalogVersion, descriptor.id());
+ return new MakeIndexAvailableEventParameters(causalityToken,
catalogVersion, indexId);
+ }
+
+ private static CatalogSchemaDescriptor schemaByIndexId(Catalog catalog,
int indexId) {
+ CatalogIndexDescriptor index = catalog.index(indexId);
+
+ assert index != null : indexId;
+
+ CatalogTableDescriptor table = catalog.table(index.tableId());
+
+ assert table != null : index.tableId();
+
+ CatalogSchemaDescriptor schema = catalog.schema(table.schemaId());
+
+ assert schema != null : table.schemaId();
+
+ return schema;
}
- /** Returns schema name. */
- public String schemaName() {
- return schemaName;
+ private static CatalogIndexDescriptor
createReadWriteIndex(CatalogIndexDescriptor source, long causalityToken) {
Review Comment:
Tried renaming everything related to this problem.
--
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]