timoninmaxim commented on a change in pull request #9345:
URL: https://github.com/apache/ignite/pull/9345#discussion_r803652959
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
##########
@@ -482,9 +487,30 @@ public void setFileIOFactory(FileIOFactory ioFactory) {
serializer = new
RecordSerializerFactoryImpl(cctx).createSerializer(serializerVer);
- GridCacheDatabaseSharedManager dbMgr =
(GridCacheDatabaseSharedManager)cctx.database();
+ IgniteCacheDatabaseSharedManager dbMgr = cctx.database();
- metrics = dbMgr.persistentStoreMetricsImpl();
+ if (dbMgr instanceof GridCacheDatabaseSharedManager)
+ metrics =
((GridCacheDatabaseSharedManager)dbMgr).persistentStoreMetricsImpl();
+ else {
+ DataStorageConfiguration dsCfg =
cctx.gridConfig().getDataStorageConfiguration();
Review comment:
I think we should to move this logic up to
`IgniteCacheDatabaseSharedManager` by analogue with the `#startMemoryRestore()`
method. WDYT?
--
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]