[jboss-user] [JBoss Cache: Core Edition] - Re: Eviction queue fills up causing threads to block
Jeremy Stone
do-not-reply at jboss.com
Tue Aug 18 09:08:00 EDT 2009
Not sure whether there are any further developments on this, but would it be worthwhile modifying EvictionTimerTask.handleRegion(...) so that at least if an unforseen problem occurs which causes the eviction to stop then at least the exception is logged:
private void handleRegion(Region region)
| {
| try
| {
| region.processEvictionQueues();
| }
| catch (EvictionException e)
| {
| log.error("run(): error processing eviction with exception: "
| + e.toString() + " will reset the eviction queue list.");
| region.resetEvictionQueues();
| log.debug("trace", e);
| }
| catch (RuntimeException e)
| {
| log.error("run(): error processing eviction", e);
| throw e;
| }
| catch (Error e)
| {
| log.error("run(): error processing eviction", e);
| throw e;
| }
| }
An alternative would be to just catch Throwable and not re-throw it. But not sure what state the eviction queues would be in if scheduled eviction were to continue??
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250174#4250174
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250174
More information about the jboss-user
mailing list