mirror of https://github.com/apache/lucene.git
SOLR-10763: Admin UI replication tab sometimes empty when failed replications
This commit is contained in:
parent
4676410689
commit
69d0c70651
|
@ -435,6 +435,8 @@ Bug Fixes
|
|||
|
||||
* 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
|
||||
----------------------
|
||||
* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)
|
||||
|
|
|
@ -105,13 +105,13 @@ var getIterations = function(slave) {
|
|||
for (var i in slave.replicationFailedAtList) {
|
||||
var failedDate = slave.replicationFailedAtList[i];
|
||||
var matchingIterations = find(iterations, failedDate);
|
||||
if (matchingIterations) {
|
||||
if (matchingIterations[0]) {
|
||||
iteration = matchingIterations[0];
|
||||
iteration.status = "failed";
|
||||
} else {
|
||||
iteration = {date: failedDate, latest:false};
|
||||
iteration = {date: failedDate, status:"failed", latest:false};
|
||||
iterations.push(iteration);
|
||||
}
|
||||
iteration.status = "failed";
|
||||
if (failedDate == slave.replicationFailedAt) {
|
||||
iteration.latest = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue