mirror of https://github.com/apache/lucene.git
SOLR-11929: UpdateLog metrics are not initialized on core reload
This commit is contained in:
parent
2bbd193691
commit
8e276b90f5
|
@ -107,7 +107,9 @@ Bug Fixes
|
|||
(Susheel Kumar, Aibao Luo, Nikkolay Martinov via Erick Erickson)
|
||||
|
||||
* SOLR-12172: Fixed race condition that could cause an invalid set of collection properties to be kept in
|
||||
memory when multiple collection property changes are done in a short period of time. (Tomás Fernández Löbbe)
|
||||
memory when multiple collection property changes are done in a short period of time. (Tomás Fernández Löbbe)
|
||||
|
||||
* SOLR-11929: UpdateLog metrics are not initialized on core reload. (ab, Steve Rowe)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -347,13 +347,12 @@ public class UpdateLog implements PluginInfoInitialized, SolrMetricProducer {
|
|||
this.uhandler = uhandler;
|
||||
|
||||
if (dataDir.equals(lastDataDir)) {
|
||||
versionInfo.reload();
|
||||
core.getCoreMetricManager().registerMetricProducer(SolrInfoBean.Category.TLOG.toString(), this);
|
||||
|
||||
if (debug) {
|
||||
log.debug("UpdateHandler init: tlogDir=" + tlogDir + ", next id=" + id, " this is a reopen... nothing else to do.");
|
||||
}
|
||||
|
||||
versionInfo.reload();
|
||||
|
||||
// on a normal reopen, we currently shouldn't have to do anything
|
||||
return;
|
||||
}
|
||||
lastDataDir = dataDir;
|
||||
|
|
Loading…
Reference in New Issue