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

Provide default for ConcurrentUpdateSolrClient's "queueSize" param

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 7.2, 8.0
    • Component/s: SolrJ
    • Labels:
      None

      Description

      A user on the mailing list recently pointed out that if it's not specified explicitly as a Builder option, ConcurrentUpdateSolrClient will default to using a queueSize of 0. This value gets passed in to the underlying queue data structure which throws an IllegalArgumentException, with an error message that isn't obvious to those unfamiliar with the internals.

      We should provide a better default than the uninitialized-variable default of 0. Almost all occurrences in the code fall between 5 and 10, so a queueSize in that range should be uncontroversial.

        Attachments

        1. SOLR-11256.patch
          3 kB
          Anshum Gupta
        2. SOLR-11256.patch
          1 kB
          Jason Gerlowski

          Activity

            People

            • Assignee:
              anshum Anshum Gupta
              Reporter:
              gerlowskija Jason Gerlowski
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: