[ 
https://issues.apache.org/jira/browse/OPENJPA-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893421#action_12893421
 ] 

Fay Wang commented on OPENJPA-1726:
-----------------------------------

        The failing test cases running on Postgres are now in 
TestMixedLockManagerFindPermutation. This test case spawns three threads and 
the pass/no pass of the test cases depends on the timing.  

        One example is 
TestMixedLockManagerFindPermutation.testFindReadPessimisticRead when the second 
child thread is doing rollback: 
        commonFindTest(
            "testFind(Read,Commit/PessimisticRead,Rollback)",
            LockModeType.READ, Act.CommitTx, 1, null,
            LockModeType.PESSIMISTIC_READ, Act.RollbackTx, 1, null);

        In the failing trace file, you can easily see that the find by the 
second child [Thread-8] is before the jdbc commit of the update statement by 
the first child [Thread-7], even though the commit action is issued by Thread-7 
before the find by Thread-8.

> Clean up OpenJPA test case failures for PostgreSQL
> --------------------------------------------------
>
>                 Key: OPENJPA-1726
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1726
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: OPENJPA-1726-2.patch, OPENJPA-1726.patch
>
>


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

Reply via email to