Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-644

EhCacheManager.getCache Error Cache cacheName already exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0-RC2, 1.4.0
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
      None

      Description

      1.4.0-RC2 EhCacheManager.java line 155~172

       
      net.sf.ehcache.Ehcache cache = ensureCacheManager().getEhcache(name);
      if (cache == null) {
          synchronized (name.intern()) {
              cache = manager.getCache(name);
              if (cache == null) {
                  if (log.isInfoEnabled()) {
                      log.info("Cache with name '{}' does not yet exist.  Creating now.", name);
                  }
                  this.manager.addCache(name);
       
                  cache = manager.getCache(name);
                   ...

              }
          }
      } else {  ... }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              huihua zhaohuihua
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified