You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Danyal Prout (JIRA)" <ji...@apache.org> on 2019/03/11 22:30:00 UTC

[jira] [Created] (SOLR-13316) Adding a document with TLOG replicas increments the updateHandler error metrics

Danyal Prout created SOLR-13316:
-----------------------------------

             Summary: Adding a document with TLOG replicas increments the updateHandler error metrics
                 Key: SOLR-13316
                 URL: https://issues.apache.org/jira/browse/SOLR-13316
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 7.7.1
            Reporter: Danyal Prout


When running Solr with multiple TLOG replicas (with or without PULL replicas), the non-leader TLOG replicas record all add document operations as errors in the metrics.

I've made a demo-test for this [here|https://github.com/apache/lucene-solr/compare/master...danyalprout:tlog-replica-error-metric-demo?expand=1#diff-b0404d00a2811759e3285c3f27348d41R132]. The direct handler [returns 1|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java#L274], in the case where there is an update log. Which in the finally clause, increments the [error count metrics|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java#L309].

The add document requests succeed, however the following metrics seem to be incorrectly incremented:

{code}
UPDATE.updateHandler.cumulativeErrors.count
UPDATE.updateHandler.errors
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org