1. OpenJPA
  2. OPENJPA-1624

Fix intermittent datacache timeout failures in TestSJVMCache and CacheTest


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


      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.)


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        16m 6s 1 Donald Woods 09/Apr/10 18:47
        In Progress In Progress Resolved Resolved
        23h 32m 1 Donald Woods 10/Apr/10 18:20
        Resolved Resolved Closed Closed
        12d 3h 10m 1 Donald Woods 22/Apr/10 21:30
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Issue Type Bug [ 1 ] Test [ 6 ]
        Donald Woods made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Attachment OPENJPA-1624.patch [ 12441319 ]
        Donald Woods added a comment -

        attaching patch for 2.0.x and trunk

        Donald Woods added a comment - attaching patch for 2.0.x and trunk
        Donald Woods made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Donald Woods created issue -


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


            • Created: