Bug in Cache?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in Cache?

CS-2
Hi,

The following scenario: Within a transaction an insert and a select
query is executed, therefore the result of the select query is in the
cache. Now the transaction gets rolled back (for whatever reason).
What we experience is that the entity remains in the cache (though the
underlying data was rolled-back).

Am I missing something, or is that a bug in the cache-implementation?

br
Christoph
Reply | Threaded
Open this post in threaded view
|

Re: Bug in Cache?

Clinton Begin
Administrator
The global cache should not behave that way.  But your local session cache might.  

You can flush the session cache in the event of an exception.

Clinton

On Thu, Jun 30, 2011 at 8:19 AM, CS <[hidden email]> wrote:
Hi,

The following scenario: Within a transaction an insert and a select
query is executed, therefore the result of the select query is in the
cache. Now the transaction gets rolled back (for whatever reason).
What we experience is that the entity remains in the cache (though the
underlying data was rolled-back).

Am I missing something, or is that a bug in the cache-implementation?

br
Christoph