ibessonov commented on code in PR #6692:
URL: https://github.com/apache/ignite-3/pull/6692#discussion_r2413361493
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -3611,9 +3611,14 @@ private void addTableToZone(int zoneId, TableImpl table)
throws IgniteInternalEx
}
}
- private TableMetricSource createAndRegisterMetricsSource(QualifiedName
tableName) {
+ private TableMetricSource
createAndRegisterMetricsSource(StorageTableDescriptor tableDescriptor,
QualifiedName tableName) {
TableMetricSource source = new TableMetricSource(tableName);
+ StorageEngine engine =
dataStorageMgr.engineByStorageProfile(tableDescriptor.getStorageProfile());
+ if (engine != null) {
Review Comment:
In other places we replace it with `NullStorageEngine` if it's `null`. I did
not try to understand what's going on, but apparently it's possible sometimes.
Maybe only in tests.
--
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]