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

Support for named global classloaders

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • None

    Description

      curl -X POST -H 'Content-type:application/json' --data-binary '
      {
        "add-package": {
             "name": "my-package" ,
            "sha512":"<the-sha512>"
        }
      }' http://localhost:8983/api/cluster
      
      

      This means that Solr creates a globally accessible classloader with a name my-package which contains all the jars of that package.
      A component should be able to use the package by using the "package" : "my-package".
      eg:

      curl -X POST -H 'Content-type:application/json' --data-binary '
      {
        "create-searchcomponent": {
            "name": "my-searchcomponent" ,
            "class" : "my.path.to.ClassName",
           "package" : "my-package"
        }
      }' http://localhost:8983/api/c/mycollection/config 
      

      Attachments

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul Noble Paul
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m