| Summary: | Some pessimistic locking tests of the JPA LRG test suite block on MaxDB | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Adrian Goerler <adrian.goerler> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andreas.fischbach, eclipselink.orm-inbox, krum.tsvetkov, michael.f.obrien, sabine.heider |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | test mysql | ||
| Attachments: | |||
|
Description
Adrian Goerler
Created attachment 179814 [details]
patch rewriting tests to avoid deadlock on MaxDB; fixing issue with pessimistic lock scope EXTENDED on MySQL
PessimisticLockingExtendedScopeTestSuite:
Test are rewritten so that they assert REPEATABLE READ semantics in the presence of a WRITE LOCK.
MySQLPlatfrom:
Rewriting PessimisticLockingExtendedScopeTestSuite indicated that locks with pessimistic lock scope EXTENDED did not lock dependent tables on MySQL. A fix is provided in this patch.
AdvancedQueryTestSuite:
The statements are reordered to avoid a deadlock upon reading a locked entity.
Tested on
- MaxDB -> some failures but tests are not hanging
- Oracle -> OK
- MySQL -> (but see 326424)
Created attachment 179824 [details]
patch rewriting tests to avoid deadlock on MaxDB; fixing issue with pessimistic lock scope EXTENDED on MySQL
improved thread synchronization
Reviewed by Yiping and Gordon Tested on Oracle, MySQL, MaxDB Checked in at #8276 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |