-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: what causes "An item was expired by the cache while...&
PostPosted: Fri Feb 23, 2007 4:46 pm 
Newbie

Joined: Tue Nov 28, 2006 2:37 pm
Posts: 7
I'm getting a bunch of WARN messages that look like:

[ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout)

I'm trying to figure out what is causing this. The only thing I can think of is that during a single session/transaction the following is occurring:

1. session opened
2. item fetched
3. item updated
4. session flushed
5. same item updated
6. session flushed
7. session closed

The error is occurring after the session is closed, so I'm guessing what is happening is the item in the ReadWrite cache is invalidated after the first update/flush and the second update/flush before the session is closed is causing the warning. But the warning doesn't occur until after the session is closed, possibly because the cache is updated during close()?

-Randy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 5:09 pm 
Newbie

Joined: Tue Mar 20, 2007 5:05 pm
Posts: 1
Did you ever figure out what was happening?

There are currently four separate messages in this forum on this topic without a single reply. As far as I have been able to tell, this message is innocuous and should probably be emitted at debug level, but it would be nice to get confirmation or a workaround from someone.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 5:16 pm 
Newbie

Joined: Tue Nov 28, 2006 2:37 pm
Posts: 7
No, for now I am suppressing the warnings on org.hibernate.cache.ReadWriteCache so they don't pollute the log files.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 13, 2007 10:22 am 
Beginner
Beginner

Joined: Thu Feb 08, 2007 10:40 am
Posts: 46
I have the same problem. Is this a thread to my data, or does it just mean that the cache is not used as optimal as it could be used, if the timeout was increased? By the way: the timeout is set to 'eternal', so I can't increase anything there.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.