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

Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.0-ALPHA, 4.0-BETA, 4.0
    • Fix Version/s: None
    • Component/s: multicore
    • Labels:
      None

      Description

      a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
      e.g.
      http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
      or append whatever uncrect param like:
      http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

      those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
      this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

      here, checkDefault() should throw exception rather than assign a name quietly

      I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those invoker should be double check in next version

        Attachments

        1. SOLR-4098.patch
          2 kB
          Po Rui

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              brui Po Rui
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: