[ 
https://issues.apache.org/jira/browse/SOLR-13637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noble Paul updated SOLR-13637:
------------------------------
    Description: 
When we update jars or add/modify plugins no core reloading should be required 
.Core reloading is a very expensive operation. Optionally, we can just make the 
plugin depend on the corecontainer level classloader. 

{code:xml}
 <queryParser name="mycustomQParser" class="my.path.to.ClassName" 
runtimeLib="global">
 
  </queryParser>

{code}

The global classloader is the corecontainer level classloader . So whenever 
this is reloaded The component gets reloaded. The only caveat is, this 
component cannot use core specific jars

eg:
{code}
curl -X POST -H 'Content-type:application/json' --data-binary '
{
  "update-runtimelib": {
      "name": "lib-name" ,
      "url" : "http://host:port/url/of/jar";,
      "sha512":"<the-new-sha512>"
  }
}' http://localhost:8983/api/cluster
{code}


  was:
When we update jars or add/modify plugins no core reloading should be required 
.Core reloading is a very expensive operation. Optionally, we can just make the 
plugin depend on the corecontainer level classloader. 

{code:xml}
 <queryParser name="mycustomQParser" class="my.path.to.ClassName" 
runtimeLib="global">
 
  </queryParser>

{code}

The global classloader is the corecontainer level classloader . So whenever 
this is reloaded The component gets reloaded

eg:
{code}
curl -X POST -H 'Content-type:application/json' --data-binary '
{
  "update-runtimelib": {
      "name": "lib-name" ,
      "url" : "http://host:port/url/of/jar";,
      "sha512":"<the-new-sha512>"
  }
}' http://localhost:8983/api/cluster
{code}



> Core reloads not required for reloading jars/adding plugins
> -----------------------------------------------------------
>
>                 Key: SOLR-13637
>                 URL: https://issues.apache.org/jira/browse/SOLR-13637
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>            Priority: Major
>
> When we update jars or add/modify plugins no core reloading should be 
> required .Core reloading is a very expensive operation. Optionally, we can 
> just make the plugin depend on the corecontainer level classloader. 
> {code:xml}
>  <queryParser name="mycustomQParser" class="my.path.to.ClassName" 
> runtimeLib="global">
>  
>   </queryParser>
> {code}
> The global classloader is the corecontainer level classloader . So whenever 
> this is reloaded The component gets reloaded. The only caveat is, this 
> component cannot use core specific jars
> eg:
> {code}
> curl -X POST -H 'Content-type:application/json' --data-binary '
> {
>   "update-runtimelib": {
>       "name": "lib-name" ,
>       "url" : "http://host:port/url/of/jar";,
>       "sha512":"<the-new-sha512>"
>   }
> }' http://localhost:8983/api/cluster
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to