Andrzej Bialecki created SOLR-18422:
---------------------------------------
Summary: CrossDC Producer: System.nanoTime used as absolute
timestamp
Key: SOLR-18422
URL: https://issues.apache.org/jira/browse/SOLR-18422
Project: Solr
Issue Type: Bug
Components: module - crossDC
Affects Versions: 9.10.1, 10.0, main(11.0)
Reporter: Andrzej Bialecki
Assignee: Andrzej Bialecki
{{SolrMessageProcessor.logFirstAttemptLatency}} logs and records a metric that
is currently meaningless because it treats the
{{MirroredSolrRequest.getSubmitTimeNanos()}} as an absolute timestamp - but
this value is initialized on the producer side from {{System.nanoTime()}} which
has an arbitrary origin.
Even assuming that both sides of the CrossDC path are perfectly
time-synchronized currently this value is meaningless. Instead, both sides
should use absolute timestamps from {{TimeSource.CURRENT_TIME.getTimeNs()}} to
at least have a chance of producing values closer to reality.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]