nizhikov commented on a change in pull request #8928:
URL: https://github.com/apache/ignite/pull/8928#discussion_r611593947



##########
File path: 
modules/core/src/test/java/org/apache/ignite/internal/processors/database/CacheFreeListSelfTest.java
##########
@@ -514,9 +514,12 @@ protected PageMemory createPageMemory(int pageSize, 
DataRegionConfiguration plcC
 
         IgniteConfiguration cfg = new 
IgniteConfiguration().setMetricExporterSpi(new NoopMetricExporterSpi());
 
-        DataRegionMetricsImpl regionMetrics = new DataRegionMetricsImpl(plcCfg,
-            new GridMetricManager(new GridTestKernalContext(new 
GridTestLog4jLogger(), cfg)),
-            NO_OP_METRICS);
+        GridTestKernalContext ctx = new GridTestKernalContext(new 
GridTestLog4jLogger(), cfg);
+
+        ctx.add(new GridMetricManager(ctx));
+
+        DataRegionMetricsImpl regionMetrics = new 
DataRegionMetricsImpl(plcCfg, ctx.metric(),
+            ctx.performanceStatistics(), NO_OP_METRICS);

Review comment:
       Should we add `PerformanceStatisticsProcessor` to the ctx first?




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to