Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-274

autoCommit maxDocs does not apply if maxTime is defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            klaasm Mike Klaas
            klaasm Mike Klaas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: