fixed ReindexSolrBusyThread new and unexpected repeat of same query with

low number of found documents - by adding additional end condition to 
remove processed query with number of found docs <= process-chunck-size.

Noticed on query h4_txt:[* TO *], found 21, process 21, call of commit happend
but on next cycle same query again 21 docs found (while h4_txt was removed 
from schema and committed inputdocuments).
pull/114/head
reger 8 years ago
parent 0aa0dd0b5b
commit 86534a56f7

@ -144,6 +144,9 @@ import org.apache.solr.common.SolrInputDocument;
Switchboard.getSwitchboard().index.putDocument(idoc);
processed++;
}
if (xdocs.size() >= docstoreindex) { // number processed docs >= found docs -> end condition for this query as no more docs avail-
querylist.delete(currentquery); // 2017-02-27 added on occurence of 21 docs found 21 processed but somehow on next call 21 docs again found (some commit issue ??)
}
}
} catch (final IOException ex) {
ConcurrentLog.warn("MIGRATION-REINDEX", "remove following query from list due to error, q=" + currentquery);

Loading…
Cancel
Save