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

fix deprecation warnings for absent (maxMergeDocs|mergeFactor)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5, 6.0
    • 5.5.1, 6.0
    • None
    • None

    Description

      markus17 wrote on the solr-user mailing list:

      5.5.0 SOLR-8621 deprecation warnings without maxMergeDocs or mergeFactor

      ...

      o.a.s.c.Config Beginning with Solr 5.5, <maxMergeDocs> is deprecated, configure it on the relevant <mergePolicyFactory> instead.

      ...

      On my development machine for all cores. None of the cores has either parameter configured. Is this expected?

      ...

      cpoerschke replied:
      ...

      Could you advise if/that the solrconfig.xml has a <mergePolicy> element (for which deprecated warnings would appear separately) or that the solrconfig.xml has no <mergePolicyFactory> element?

      ...

      If either is the case then yes based on the code (SolrIndexConfig.java#L153) the warnings would be expected-and-harmless though admittedly are confusing, and fixable.

      ...

      Attachments

        1. SOLR-8734.patch
          3 kB
          Christine Poerschke
        2. SOLR-8734.patch
          3 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: