8484import org .elasticsearch .index .store .FsDirectoryFactory ;
8585import org .elasticsearch .index .store .MetricHolder ;
8686import org .elasticsearch .index .store .Store ;
87+ import org .elasticsearch .index .store .StoreMetrics ;
8788import org .elasticsearch .indices .IndicesModule ;
8889import org .elasticsearch .indices .IndicesQueryCache ;
8990import org .elasticsearch .indices .TestIndexNameExpressionResolver ;
@@ -265,7 +266,7 @@ public void testWrapperIsBound() throws IOException {
265266 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
266267 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
267268 MergeMetrics .NOOP ,
268- MetricHolder . noop ()
269+ StoreMetrics . NOOP_HOLDER
269270 );
270271 module .setReaderWrapper (s -> new Wrapper ());
271272
@@ -297,7 +298,7 @@ public void testRegisterIndexStore() throws IOException {
297298 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
298299 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
299300 MergeMetrics .NOOP ,
300- MetricHolder . noop ()
301+ StoreMetrics . NOOP_HOLDER
301302 );
302303
303304 final IndexService indexService = newIndexService (module );
@@ -327,7 +328,7 @@ public void testDirectoryWrapper() throws IOException {
327328 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
328329 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
329330 MergeMetrics .NOOP ,
330- MetricHolder . noop ()
331+ StoreMetrics . NOOP_HOLDER
331332 );
332333
333334 module .setDirectoryWrapper (new TestDirectoryWrapper ());
@@ -685,7 +686,7 @@ public void testRegisterCustomRecoveryStateFactory() throws IOException {
685686 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
686687 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
687688 MergeMetrics .NOOP ,
688- MetricHolder . noop ()
689+ StoreMetrics . NOOP_HOLDER
689690 );
690691
691692 final IndexService indexService = newIndexService (module );
@@ -712,7 +713,7 @@ public void testIndexCommitListenerIsBound() throws IOException, ExecutionExcept
712713 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
713714 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
714715 MergeMetrics .NOOP ,
715- MetricHolder . noop ()
716+ StoreMetrics . NOOP_HOLDER
716717 );
717718
718719 final AtomicLong lastAcquiredPrimaryTerm = new AtomicLong ();
@@ -819,7 +820,7 @@ private static IndexModule createIndexModule(
819820 new IndexingStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
820821 new SearchStatsSettings (ClusterSettings .createBuiltInClusterSettings ()),
821822 MergeMetrics .NOOP ,
822- MetricHolder . noop ()
823+ StoreMetrics . NOOP_HOLDER
823824 );
824825 }
825826
0 commit comments