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

Ability to control the commit behaviour of commitWithin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0, 4.1
    • 4.2, 6.0
    • replication (java)
    • None

    Description

      We need the ability to control the hard/soft commit behaviour of commitWithin parameter.

      Since Solr 4.0, the commitWithin's performs a soft-commit which prevents slaves from picking up the changes in a master/slave configuration.

      The behaviour I'm thinking is as follows:

      1. By default, commitWithin will trigger soft commits.

      2. But this behaviour can be overwritten in solrconfig.xml to allow commitWithin to perform hard commits, which will allow slaves to pick up the changes.

      <commitWithin>
      <forceHardCommit>true</forceHardCommit> <!-- default is false -->
      </commitWithin>

      Related to SOLR-4100

      Attachments

        1. without_commit.txt
          3 kB
          Senthuran Sivananthan
        2. with_commit.txt
          3 kB
          Senthuran Sivananthan
        3. SOLR-4370.patch
          11 kB
          Mark Miller

        Issue Links

          Activity

            People

              markrmiller@gmail.com Mark Miller
              senthuran Senthuran Sivananthan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: