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

Size based BlockDiskCache data corruption

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-2.0-beta-1
    • jcs-2.0-beta-2
    • Composite Cache
    • None
    • Windows 7, Java 8
    • Patch

    Description

      As a follow-up to JCS-147 - I've encountered some problems when using BlockDiskCache and size limitation that sometimes content is dropped due to failed integrity check. It's not reproducible every time, but I've managed to create the JUnit test that fails every time just by using simple loop.

      From attached patch, testLoadFromDisk fails on my system every time. I've tried to debug this, but I've run out of ideas, where to look for the problem.

      Attached patch contains also some restructure of the tests:
      BlockDiskCacheUnitTest renamed to BlockDiskCacheUnitTestAbstract
      IndexDiskCacheUnitTest renamed to IndexDiskCacheUnitTestAbstract
      IndexDiskCacheUnitTestCount ->IndexDiskCacheCountUnitTest
      IndexDiskCacheUnitTestSize -> IndexDiskCacheSizeUnitTest
      BlockDiskCacheUnitTestCount -> BlockDiskCacheCountUnitTest
      BlockDiskCacheUnitTestSize -> BlockDiskCacheSizeUnitTest

      To better align with current patterns looking for tests.

      Attachments

        1. size-tests.patch
          121 kB
          Wiktor N

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: