Solr
  1. Solr
  2. SOLR-7582

The SolrCloud example (bin/solr -e cloud) should have soft auto-commits enabled by default.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      I think the SolrCloud example (bin/solr e cloud) should enable soft auto-commits by default. The script should enable soft-commits using the Config API, which will give a good example of using the Config API for new users.

      Also, the data_driven configs should allow setting the auto-commit values using -D sys props as in the techproducts solrconfig.xml.

      I'd like to get this into 5.2 as I've run into several people that send data into their collection only and don't see any docs (because soft-commits are disabled). So this is a usability issue for new users.

      1. SOLR-7582.patch
        16 kB
        Timothy Potter

        Activity

        Hide
        Timothy Potter added a comment -

        Here's a patch that has:

        • updates the data_driven auto-commit settings to match what's in the other configsets
        • adds a new "config" action to SolrCLI for setting a config property from bin/solr
        • enables soft-auto-commit for 3 seconds for the gettingstarted collection of the bin/solr -e cloud example
        • improvements to the unit test for SolrCLI
        Show
        Timothy Potter added a comment - Here's a patch that has: updates the data_driven auto-commit settings to match what's in the other configsets adds a new "config" action to SolrCLI for setting a config property from bin/solr enables soft-auto-commit for 3 seconds for the gettingstarted collection of the bin/solr -e cloud example improvements to the unit test for SolrCLI
        Hide
        Anshum Gupta added a comment -

        LGTM, +1!
        It would be good to add pre-checks for all the 3 tests though i.e that a property does exist before you delete and confirm, etc.

        Show
        Anshum Gupta added a comment - LGTM, +1! It would be good to add pre-checks for all the 3 tests though i.e that a property does exist before you delete and confirm, etc.
        Hide
        ASF subversion and git services added a comment -

        Commit 1681175 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1681175 ]

        Revert changes committed under wrong JIRA #, should have been SOLR-7582, not 7583

        Show
        ASF subversion and git services added a comment - Commit 1681175 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1681175 ] Revert changes committed under wrong JIRA #, should have been SOLR-7582 , not 7583
        Hide
        ASF subversion and git services added a comment -

        Commit 1681177 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1681177 ]

        SOLR-7582: Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.

        Show
        ASF subversion and git services added a comment - Commit 1681177 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1681177 ] SOLR-7582 : Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.
        Hide
        ASF subversion and git services added a comment -

        Commit 1681216 from Timothy Potter in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1681216 ]

        SOLR-7582: Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.

        Show
        ASF subversion and git services added a comment - Commit 1681216 from Timothy Potter in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1681216 ] SOLR-7582 : Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.
        Hide
        ASF subversion and git services added a comment -

        Commit 1681219 from Timothy Potter in branch 'dev/branches/lucene_solr_5_2'
        [ https://svn.apache.org/r1681219 ]

        SOLR-7582: Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.

        Show
        ASF subversion and git services added a comment - Commit 1681219 from Timothy Potter in branch 'dev/branches/lucene_solr_5_2' [ https://svn.apache.org/r1681219 ] SOLR-7582 : Allow auto-commit to be set with system properties in data_driven_schema_configs and enable auto soft-commits for the bin/solr -e cloud example using the Config API.
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Timothy Potter
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development