SOLR-11929: UpdateLog metrics are not initialized on core reload

This commit is contained in:
Steve Rowe 2018-04-04 11:18:10 -04:00
parent 2bbd193691
commit 8e276b90f5
2 changed files with 6 additions and 5 deletions

View File

@ -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
----------------------

View File

@ -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;