• Bug
  • Status: Resolved
  • 2 Major
  • Resolution: As Designed
  • alexsnaps
  • Reporter: krokodyl
  • June 06, 2013
  • 0
  • Watchers: 4
  • November 20, 2013
  • November 20, 2013

Description

In multithreaded application Ehcache samoetime fails with {noformat} Caused by: net.sf.ehcache.ObjectExistsException: Cache xxx already exists at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1171) {noformat}

The same problem exist for default cache configuration and is not fixed in 2.6.6 and 2.7.0

In calls addCacheNoCheck with strict=true should be changed to strict=false.

Comments

Fiona OShea 2013-06-06

Can you take a look?

Alexander Snaps 2013-11-20

That’s why we have CacheManager.addCacheIfAbsent Can’t really change the way addCache works because of backwards compatibility