• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

Using ehcache 0.8 from hibernate 2.1, and notice that ehcache leaves its expiry and spool threads running when the cache gets shut down.

I notice in the browsable CVS that the version of DiskStore that is tagged ehcahe_08, as well as the most recent doesn’t wake up very often, at least I would have expected the threads to have stopped after a couple minutes with my settings, and they last much longer than that.

Cache creates a new DiskStore with diskStore = new DiskStore(this, configuration.getDiskCachePath());

This does not pass in the supplied expiryThreadInterval, so DiskStore’s default interval of 5 * 60 * 5 seconds is used (25 minutes!). This is a very long time, and probably not what the developer specifies. I know hibernate specifies 120 seconds by default.

Also, it would be nice if, on DiskStore.dispose(), the expiryThread and spoolThread were woken up so they could exit in a timely manner.

Sourceforge Ticket ID: 982383 - Opened By: zacjacobson - 30 Jun 2004 01:48 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira