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

Ability to control the commit behaviour of commitWithin

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0, 4.1
    • Fix Version/s: 4.2, 6.0
    • Component/s: replication (java)
    • Labels:
      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. SOLR-4370.patch
          11 kB
          Mark Miller
        2. with_commit.txt
          3 kB
          Senthuran Sivananthan
        3. without_commit.txt
          3 kB
          Senthuran Sivananthan

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: