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

JDBCStream should be able to load driver from runtime lib

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parallel SQL
    • Labels:
      None

      Description

      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

        Attachments

        1. SOLR-10105.patch
          5 kB
          Noble Paul

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                noble.paul Noble Paul
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: