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

DIH: SqlEntityProcessor with "simple" cache broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.6.1, 4.0-BETA
    • None
    • None

    Description

      The wiki describes a usage of CachedSqlEntityProcessor like this:

      <entity name="y" query="select * from y where xid=${x.id}" processor="CachedSqlEntityProcessor">
      

      This creates what the code refers as a "simple" cache. Rather than build the entire cache up-front, the cache is built on-the-go. I think this has limited use cases but it would be nice to preserve the feature if possible.

      Unfortunately this was not included in any (effective) unit tests, and SOLR-2382 entirely broke the functionality for 3.6/4.0-alpha+ . At a first glance, the fix may not be entirely straightforward.

      This was found while writing tests for SOLR-3856.

      Attachments

        1. SOLR-3857.patch
          4 kB
          James Dyer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdyer James Dyer
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: