autoCommit maxDocs does not apply if maxTime is defined
-------------------------------------------------------
Key: SOLR-274
URL: https://issues.apache.org/jira/browse/SOLR-274
Project: Solr
Issue Type: Bug
Affects Versions: 1.2
Reporter: Mike Klaas
Assignee: Mike Klaas
Fix For: 1.3
the problem is in this block:
public void addedDocument() {
docsSinceCommit++;
lastAddedTime = System.currentTimeMillis();
if( pending == null ) { // Don't start a new event if one is already
waiting
if( timeUpperBound > 0 ) {
pending = scheduler.schedule( this, timeUpperBound,
TimeUnit.MILLISECONDS );
}
else if( docsUpperBound > 0 && (docsSinceCommit > docsUpperBound) ) {
// 1/4 second seems fast enough for anyone using maxDocs
pending = scheduler.schedule( this, 250, TimeUnit.MILLISECONDS );
}
}
}
the docSinceCommit block is not triggered as a (long waiting) pending commit
scheduled for maxTime.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.