From dc9dbd266b474df912444e480cd051bf9623338a Mon Sep 17 00:00:00 2001 From: Tomas Fernandez Lobbe Date: Wed, 23 Oct 2019 16:13:26 -0700 Subject: [PATCH] SOLR-13866: Override getSolrMetricsContext in DirectUpdateHandler2 (#971) --- solr/CHANGES.txt | 3 +++ .../java/org/apache/solr/update/DirectUpdateHandler2.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 14b96824234..386da225d94 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -127,6 +127,9 @@ Bug Fixes * SOLR-9802: Fix grouping failure for date field in solrcloud (Erick Erickson, Munendra S N, Vitaly Lavrov) +* SOLR-13866: Fix bug introduced by SOLR-13677 that caused DirectUpdateHandler2 stats to not be available via /admin/plugins + handler (Tomás Fernández Löbbe) + Other Changes --------------------- diff --git a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java index 248f18ba537..d9703a256f1 100644 --- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java +++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java @@ -1014,5 +1014,10 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState public CommitTracker getSoftCommitTracker() { return softCommitTracker; } + + @Override + public SolrMetricsContext getSolrMetricsContext() { + return solrMetricsContext; + } }