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

If no configset exists, CREATE leads to a 500 error with never-ending logging and 100% CPU usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.0
    • 4.10.4, 5.0, 6.0
    • None
    • None

    Description

      Here's what I did:

      > bin/solr start -e cloud -noprompt
      
      > curl http://localhost:8983/solr/admin/collections?action=CREATE&name=thisshouldfail&numShards=1&configset=thisisaninvalidconfigset&wt=json
      

      The above led to a new collection named thisshouldfail, with the config-set as gettingstarted. This call should have failed as there was no configset by that name. Instead, it picked up the only config set it found and used it.

      There's more to this. I'm not sure how related this is but looks like it to me.

      > bin/solr start -c
      
      > curl http://localhost:8983/solr/admin/collections?action=CREATE&name=thisshouldfail&numShards=1&configset=thisisaninvalidconfigset&wt=json
      

      This led to a 900M (and growing) log file in addition to 100% CPU until I killed Solr.

      Attachments

        1. SOLR-7038.patch
          4 kB
          Mark Miller
        2. SOLR-7038.patch
          3 kB
          Anshum Gupta

        Activity

          People

            anshum Anshum Gupta
            anshum Anshum Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: