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

SolrResourceLoader must cache short name vs fully qualified name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • None
    • None

    Description

      every class that is loaded through SolrResourceLoader does a Class.forName() and when if it is not found a ClassNotFoundExcepton is thrown

      Then , it looks up with the various packages and finds the right class if the name starts with solr. Considering the fact that we usually use this solr.<classname> format we pay too much of a price for this. After every lookup the result can be cached in a static Map<String, String> with short name as keys and fully qualified name as values and can be shared across all the cores and this Map can be stored at the CoreContainer level.

      Attachments

        1. SOLR-921.patch
          3 kB
          Noble Paul
        2. SOLR-921.patch
          3 kB
          Noble Paul
        3. SOLR-921.patch
          3 kB
          Noble Paul
        4. SOLR-921.patch
          3 kB
          Noble Paul

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              noble.paul Noble Paul
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: