[ 
https://issues.apache.org/jira/browse/OPENJPA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ravi P Palacherla updated OPENJPA-1006:
---------------------------------------

    Attachment: TestQueryResultSize.java
                OPENJPA-1006.patch

Attached is the .patch  and test case ( new ).

I ran mvn test -Dtest=TestQueryResultSize.
I got assertion error.
Fixed the code attached in .patch file.
ran mvn test -Dtest=TestQueryResultSize.
The last test run is successfull.

Ran mvn -o clean package  and I see the following :
[INFO] OpenJPA ............................................... SUCCESS [4.032s]
[INFO] OpenJPA Utilities ..................................... SUCCESS [14.313s]
[INFO] OpenJPA Kernel ........................................ SUCCESS [15.562s]
[INFO] OpenJPA JDBC .......................................... SUCCESS [11.375s]
[INFO] OpenJPA JPA ........................................... SUCCESS [6.344s]
[INFO] OpenJPA JPA JDBC ...................................... SUCCESS 
[1:04:15.672s]
[INFO] OpenJPA XML Store ..................................... SUCCESS [1.562s]
[INFO] OpenJPA Slice ......................................... SUCCESS 
[2:06.719s]
[INFO] OpenJPA Aggregate Jar ................................. SUCCESS [9.531s]
[INFO] OpenJPA Distribution .................................. SUCCESS [20.719s]
[INFO] OpenJPA Persistence Examples .......................... SUCCESS [1.359s]
[INFO] OpenJPA Integration Tests ............................. SUCCESS [0.297s]
[INFO] OpenJPA Examples Integration Tests .................... SUCCESS [0.297s]
[INFO] OpenJPA JPA TCK Integration Tests ..................... SUCCESS [0.703s]

> Disabling QueryCaching at runtime does not work
> -----------------------------------------------
>
>                 Key: OPENJPA-1006
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1006
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.2.1, 2.0.0
>         Environment: N/A.
> should be replicable on all environments.
> The one I tried is on windows with oracle 10g  as database.
>            Reporter: Ravi P Palacherla
>         Attachments: OPENJPA-1006.patch, openJPATestcase.zip, 
> TestQueryResultSize.java
>
>
> 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);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to