Skip to content

Commit

Permalink
Allow plugin versions which implement the metric interface to be regi…
Browse files Browse the repository at this point in the history
…stered
  • Loading branch information
richardbadman committed Sep 16, 2022
1 parent 0f19a8f commit 3bc38b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solr/core/src/java/org/apache/solr/core/SolrCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,10 @@ private IndexDeletionPolicyWrapper initDeletionPolicy(IndexDeletionPolicyWrapper
delPolicy = new SolrDeletionPolicy();
}

if (delPolicy instanceof SolrMetricProducer) {
coreMetricManager.registerMetricProducer("IndexDeletionPolicy", (SolrMetricProducer)delPolicy);
}

return new IndexDeletionPolicyWrapper(delPolicy, snapshotMgr);
}

Expand Down

0 comments on commit 3bc38b3

Please sign in to comment.