You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2018/04/04 15:19:12 UTC
lucene-solr:branch_7x: SOLR-11929: UpdateLog metrics are not
initialized on core reload
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 12309659f -> 5a5802f5c
SOLR-11929: UpdateLog metrics are not initialized on core reload
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5a5802f5
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5a5802f5
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5a5802f5
Branch: refs/heads/branch_7x
Commit: 5a5802f5cb40811cd25232f3fe5127ecc80bdfc7
Parents: 1230965
Author: Steve Rowe <sa...@apache.org>
Authored: Wed Apr 4 11:18:10 2018 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Apr 4 11:19:02 2018 -0400
----------------------------------------------------------------------
solr/CHANGES.txt | 4 +++-
solr/core/src/java/org/apache/solr/update/UpdateLog.java | 7 +++----
2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5a5802f5/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 3d88784..33435af 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -82,7 +82,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)
* SOLR-11882: SolrMetric registries retained references to SolrCores when closed. A
change of SolrMetricMAnager.registerGauge and SolrMetricProducer.initializeMetrics
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5a5802f5/solr/core/src/java/org/apache/solr/update/UpdateLog.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/UpdateLog.java b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
index 4ca4bf2..fbdf616 100644
--- a/solr/core/src/java/org/apache/solr/update/UpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
@@ -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;