mirror of https://github.com/apache/lucene.git
SOLR-12774: IndexOutOfBoundsException on logging startupVersions
This commit is contained in:
parent
3ece536d81
commit
93e2ae3fc4
|
@ -446,10 +446,10 @@ public class RecoveryStrategy implements Runnable, Closeable {
|
|||
}
|
||||
// We skip core.seedVersionBuckets(); We don't have a transaction log
|
||||
log.info("Finished recovery process, successful=[{}]", Boolean.toString(successfulRecovery));
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: perhaps make this grab a new core each time through the loop to handle core reloads?
|
||||
final public void doSyncOrReplicateRecovery(SolrCore core) throws Exception {
|
||||
public final void doSyncOrReplicateRecovery(SolrCore core) throws Exception {
|
||||
boolean successfulRecovery = false;
|
||||
|
||||
UpdateLog ulog;
|
||||
|
@ -488,7 +488,11 @@ public class RecoveryStrategy implements Runnable, Closeable {
|
|||
log.info("currentVersions size={} range=[{} to {}]", recentVersions.size(), recentVersions.get(0), recentVersions.get(recentVersions.size()-1));
|
||||
}
|
||||
|
||||
if (startingVersions.isEmpty()) {
|
||||
log.info("startupVersions is empty");
|
||||
} else {
|
||||
log.info("startupVersions size={} range=[{} to {}]", startingVersions.size(), startingVersions.get(0), startingVersions.get(startingVersions.size()-1));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
SolrException.log(log, "Error getting recent versions.", e);
|
||||
recentVersions = new ArrayList<>(0);
|
||||
|
|
Loading…
Reference in New Issue