openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1624) Fix intermittent datacache timeout failures in TestSJVMCache and CacheTest
Date Fri, 09 Apr 2010 17:49:50 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Donald Woods updated OPENJPA-1624:
----------------------------------

    Attachment: OPENJPA-1624.patch

attaching patch for 2.0.x and trunk

> Fix intermittent datacache timeout failures in TestSJVMCache and CacheTest
> --------------------------------------------------------------------------
>
>                 Key: OPENJPA-1624
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1624
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0-beta3
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-1624.patch
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message