Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1006

Disabling QueryCaching at runtime does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1, 2.0.0-M2
    • Fix Version/s: 1.2.0, 2.0.0-M2
    • Component/s: datacache
    • Labels:
      None
    • Environment:
      N/A.
      should be replicable on all environments.
      The one I tried is on windows with oracle 10g as database.

      Description

      An application has a configuration that allows query caching, but is making runtime calls to inform a fetch plan to disable query caching.

      The bug is that this dynamic no-caching request is being ignored by the query cache executor, which then caches the query regardless.

      Tried to disable query cache using
      OpenJPAEntityManager.getFetchPlan().setQueryResultCache(false);

      and also

      query.getFetchPlan().setQueryResultCacheEnabled(false);

        Attachments

        1. openJPATestcase.zip
          8 kB
          Ravi P Palacherla
        2. OPENJPA-1006.patch
          2 kB
          Ravi P Palacherla
        3. TestQueryResultSize.java
          3 kB
          Ravi P Palacherla

          Activity

            People

            • Assignee:
              dezzio David Ezzio
              Reporter:
              rpalache Ravi P Palacherla
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: