Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1624

Fix intermittent datacache timeout failures in TestSJVMCache and CacheTest

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta3
    • Fix Version/s: 2.0.0
    • Component/s: jpa
    • Labels:
      None

      Description

      We keep seeing intermittent failures in some of the datacache tests (mainly TestSJVMCache on DB2) due to how CacheTest uses hardcoded Thread.sleep() calls to try and time when the entities have been removed from the cache. Instead, I'm going to include some code to determine time elapsed, to make a better determination on how long to sleep. Also, will add some code to skip some of the cache checks when we've already passed the timeout value for the next entity, as sometimes the load on our DB2 machine affects these test runs (and the first couple of cacheCheck() calls almost always fail when running against a remote db server.)

        Attachments

          Activity

            People

            • Assignee:
              drwoods Donald Woods
              Reporter:
              drwoods Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: