You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2017/03/05 17:45:32 UTC
[jira] [Commented] (SOLR-10105) JDBCStream should be able to load
driver from runtime lib
[ https://issues.apache.org/jira/browse/SOLR-10105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15896458#comment-15896458 ]
Kevin Risden commented on SOLR-10105:
-------------------------------------
[~dpgove] - Any thoughts on this? Any idea of how to get a reference to the core this is executing on to be able to get the class loader?
> JDBCStream should be able to load driver from runtime lib
> ---------------------------------------------------------
>
> Key: SOLR-10105
> URL: https://issues.apache.org/jira/browse/SOLR-10105
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Parallel SQL
> Reporter: Noble Paul
> Assignee: Kevin Risden
> Priority: Minor
>
> Currently the JDBCStream uses Class.forName() to load the driver class. This should be improved to try to use the classloader from runtimeLib and the blob store API like SOLR-10087. It may be possible to do something like Class.forName(driverClassName, true, core.getMemClassLoader()) just need to figure out how to get a reference to the core.
> The relevant code is here:
> https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/JDBCStream.java#L180
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org