Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
Closes #76 (closed)
sorry, the branch has the wrong number, ticket is #76 (closed), but branch has 78- prefix
Merge request reports
Activity
added Mailbox label
- Resolved by Sebastian
- Resolved by Sebastian
- Resolved by Torsten Grote
- Resolved by Torsten Grote
- Resolved by Torsten Grote
Those tests do not make sure that the actions of the threads started concurrently get to call their methods in the order as they are defined here. They should work in whatever order the threads execute, however they also don't make any strong assertions on what is going to happen.
For example it is possible for
addOwnerToken()
to be executed first and succeed in both test cases. If it gets executed after one of thedropAllTablesAndClose()
it will fail with aDbException
. In the second test one of thedropAllTablesAndClose()
should fail while the other should succeed. Actually, that seems like something we could assert.added 1 commit
- 5dd1d52d - Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
- Resolved by Torsten Grote
added 1 commit
- 6531fbf2 - Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
- Resolved by Sebastian
added 1 commit
- 3f66afd0 - Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
added 1 commit
- ecab8334 - Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
- Resolved by Torsten Grote
added 12 commits
-
a9540ca8...5b150ad0 - 10 commits from branch
main
- 5c88df6f - Avoid deadlocks with dropAllTablesAndClose() and concurrently started transactions
- 5712ac7c - Use withLock{} in JdbcDatabase
-
a9540ca8...5b150ad0 - 10 commits from branch
- Resolved by Sebastian