SOLR-10763: Admin UI replication tab sometimes empty when failed replications

This commit is contained in:
Jan Høydahl 2017-06-23 08:26:34 +02:00
parent 4676410689
commit 69d0c70651
2 changed files with 5 additions and 3 deletions

View File

@ -435,6 +435,8 @@ Bug Fixes
* SOLR-10832: Fixed VersionInfo.getMaxVersionFromIndex when using PointsField with indexed="true" (hossman) * SOLR-10832: Fixed VersionInfo.getMaxVersionFromIndex when using PointsField with indexed="true" (hossman)
* SOLR-10763: Admin UI replication tab sometimes empty when failed replications (janhoy, Bojan Vitnik)
Optimizations Optimizations
---------------------- ----------------------
* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1) * SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)

View File

@ -105,13 +105,13 @@ var getIterations = function(slave) {
for (var i in slave.replicationFailedAtList) { for (var i in slave.replicationFailedAtList) {
var failedDate = slave.replicationFailedAtList[i]; var failedDate = slave.replicationFailedAtList[i];
var matchingIterations = find(iterations, failedDate); var matchingIterations = find(iterations, failedDate);
if (matchingIterations) { if (matchingIterations[0]) {
iteration = matchingIterations[0]; iteration = matchingIterations[0];
iteration.status = "failed";
} else { } else {
iteration = {date: failedDate, latest:false}; iteration = {date: failedDate, status:"failed", latest:false};
iterations.push(iteration); iterations.push(iteration);
} }
iteration.status = "failed";
if (failedDate == slave.replicationFailedAt) { if (failedDate == slave.replicationFailedAt) {
iteration.latest = true; iteration.latest = true;
} }