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

BlockDiskCache overwrites data after loading from disk

    XMLWordPrintableJSON

    Details

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

      Description

      BlockDiskCache overwrites data, that were loaded from disk, so when they are written back to disk and accessed again - cache is corrupt.

      See the test case patch below for reproduction.

      I've also attached patch for BlockDiskCacheKeyStore verification. It validates, that all blocks belong only to one key.

      I've also proposed a patch to fix this, but it breaks some other unit test. I haven't check them, so I'm not sure, if this is correct approach

        Attachments

          Activity

            People

            • Assignee:
              tv Thomas Vandahl
              Reporter:
              wiktorn Wiktor N
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: