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

EhCacheManager.getCache Error Cache cacheName already exists

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0-RC2, 1.4.0
    • None
    • Caching
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            huihua zhaohuihua

            Dates

              Created:
              Updated:

              Time Tracking

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

                Slack

                  Issue deployment