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

Ability to control the commit behaviour of commitWithin

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment