Skip to content

Conversation

@zabetak
Copy link

@zabetak zabetak commented Mar 21, 2025

Test cases that reproduces the problem reported under datanucleus/datanucleus-rdbms#501

mvn clean test -Dtest=ValueGeneratorRandomFailureTest
mvn clean test -Dtest=ValueGeneratorRandomFailureTest -Pmysql

Both of the above will fail with lock timeout exception since the "random exception" triggers the leak and the leaking connection is not closed preventing all subsequent operations to complete.

To simulate a failure on commit I used a small jdbc proxy project that can be configured to generate failures on certain operations:
https://github.com/zabetak/jdbc-faulty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant