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

Solr script always sets zkClientTimeout to 15000 if ZK_CLIENT_TIMEOUT unset

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.1, 7.0
    • Fix Version/s: 8.7
    • Component/s: None
    • Labels:
      None

      Description

      Per SOLR-5565, ZooKeeper session timeout should have been raised to 30s. This was changed in the solr.xml example but it was not changed in the solr script, which has this:

      if [ -z "$ZK_CLIENT_TIMEOUT" ]; then
          ZK_CLIENT_TIMEOUT="15000"
        fi
      

      And for solr.cmd:

       IF "%ZK_CLIENT_TIMEOUT%"=="" set "ZK_CLIENT_TIMEOUT=15000"
      

      So regardless of what is in solr.xml, if ZK_CLIENT_TIMEOUT is not set, it will be overridden to 15,000. I'd think this should be raised to 30,000 or removed entirely to fall back on the solr.xml's behavior. Mark Miller is this correct?

        Attachments

        1. SOLR-10471.patch
          2 kB
          Munendra S N
        2. SOLR-10471.patch
          3 kB
          Markus Jelsma

          Issue Links

            Activity

              People

              • Assignee:
                munendrasn Munendra S N
                Reporter:
                mbraun688 Michael Braun
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: