Solr
  1. Solr
  2. SOLR-3827

shareSchema=true is not working when creating cores.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.0, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Even using the property "shareSchema=true" in the solr.xml, Solr would use a new schema for every core when creating new ones, even if those use the same schema.xml file.
      It looks like this was introduced with the changes for SolrCloud.

      1. SOLR-3827.patch
        4 kB
        Hoss Man
      2. SOLR-3827.patch
        5 kB
        Tomás Fernández Löbbe

        Activity

        Hide
        Tomás Fernández Löbbe added a comment -

        Adding a patch with the fix and a test case

        Show
        Tomás Fernández Löbbe added a comment - Adding a patch with the fix and a test case
        Hide
        Hoss Man added a comment -

        nice catch Tomas!

        i've refactored your test to move it into TestCoreContainer and switched to using "assertSame" so we can be 100% certain the same schema object really is being re-used.

        Show
        Hoss Man added a comment - nice catch Tomas! i've refactored your test to move it into TestCoreContainer and switched to using "assertSame" so we can be 100% certain the same schema object really is being re-used.
        Hide
        Hoss Man added a comment -

        Committed revision 1383735. - trunk
        Committed revision 1383740. - 4x

        Thanks Tomas!

        Show
        Hoss Man added a comment - Committed revision 1383735. - trunk Committed revision 1383740. - 4x Thanks Tomas!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Chris M. Hostetter
        http://svn.apache.org/viewvc?view=revision&revision=1383740

        SOLR-3827: Fix shareSchema=true in solr.xml (merge r1383735)

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Chris M. Hostetter http://svn.apache.org/viewvc?view=revision&revision=1383740 SOLR-3827 : Fix shareSchema=true in solr.xml (merge r1383735)
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

          • Assignee:
            Tomás Fernández Löbbe
            Reporter:
            Tomás Fernández Löbbe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development