rzo1 opened a new pull request, #243: URL: https://github.com/apache/openjpa/pull/243
https://issues.apache.org/jira/browse/OPENJPA-3045 `TestPessimisticLocks.testQueryAfterFindWithPessimisticLocks` is the only failure of the scheduled Databases workflow on PostgreSQL (11, 15 and 18): "Unexpected find succeeded". The test locks Employee 2 and expects `select e from Employee e where e.id < 10` with `setFirstResult(1)` to block, assuming the OFFSET skips Employee 1. Without ORDER BY, PostgreSQL may return Employee 2 first, so it is skipped and nothing blocks. Add `order by e.id`, as `testFindAfterQueryWithPessimisticLocks` already accounts for the same thing. Test only. `TestPessimisticLocks` passes on Derby. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
