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

JettyConfig.builder(JettyConfig) misses some properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1, main (10.0)
    • None
    • None

    Description

      Since JettyConfig instances are immutable, there is a Builder pattern for them, and a static JettyConfig.builder(JettyConfig other) method to create a new Builder from an existing JettyConfig.

      But this method only sets 6 of the 10 properties that available in the JettyConfig constructor (and Builder)

      This can easily bite you when using any code path that depends on  JettyConfig.builder(JettyConfig other)

      Notably this impacts any usage of MiniSolrCloudCluster which always calls JettyConfig.builder(JettyConfig other) when starting up jetty nodes – so 40% of the options you may try to manipulate on your JettyConfig will be completely ignored once MiniSolrCloudCluster actually starts the jetty nodes

      Attachments

        1. SOLR-16241.patch
          2 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: