Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-36

client count decreased too often in IndexedDiskCacheManager.release

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: jcs-1.3, jcs-2.0-beta-1
    • Fix Version/s: jcs-2.0-beta-1
    • Component/s: Indexed Disk Cache
    • Labels:
      None

      Description

      The release() method decreases the client count TWICE during each invocation. As getInstance increases the client count only once release will not work as expected:

      public void release()
      {
      clients--;

      if ( --clients != 0 )

      { return; }

      should be changed into

      public void release()
      {
      if ( --clients != 0 )
      { return; }

        Attachments

          Activity

            People

            • Assignee:
              asmuts Aaron Smuts
              Reporter:
              u_302321 Matthias Kerkhoff

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment