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: [email protected]
For additional commands, e-mail: [email protected]