You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2019/10/24 11:05:46 UTC

[lucene-solr] branch branch_8x updated: SOLR-13677: Add a missing override, which resulted in missing metrics (reported by tflobbe).

This is an automated email from the ASF dual-hosted git repository.

ab pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new b029de1  SOLR-13677: Add a missing override, which resulted in missing metrics (reported by tflobbe).
b029de1 is described below

commit b029de191ebdfd50b81f29e3334ccaac46bd70da
Author: Andrzej Bialecki <ab...@apache.org>
AuthorDate: Thu Oct 24 13:02:23 2019 +0200

    SOLR-13677: Add a missing override, which resulted in missing metrics (reported by tflobbe).
---
 solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java | 5 +++++
 1 file changed, 5 insertions(+)

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 248f18b..cacaed2 100644
--- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java
+++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java
@@ -169,6 +169,11 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState
   }
 
   @Override
+  public SolrMetricsContext getSolrMetricsContext() {
+    return solrMetricsContext;
+  }
+
+  @Override
   public void initializeMetrics(SolrMetricsContext parentContext, String scope) {
     solrMetricsContext = parentContext.getChildContext(this);
     commitCommands = solrMetricsContext.meter(this, "commits", getCategory().toString(), scope);