HHH-7252 AbstractEntityManagerImpl.find() not throwing proper exception types for LockTimeout. #317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This issue is only testable when the database dialects throw the proper Hibernate Exception type for SQL Errors generated by lock timeouts.
Unfortunately, adding this test case exposes that most of the database dialects in Hibernate are not mapping SQL Errors for timeouts properly.
There are a few exceptions.
I've been talking with sebersol on freenode the last few days about this, and was instructed to go ahead and make this pull request. If I had access to the RedHat test systems I would have already addressed these issues. I expect this request to cause some matrix tests to start failing. I will be happy to assist in fixing those (and the dialects which fail) if I can somehow get access to the logs for the failures (which should have the JDBCException dumps with the proper error states for each dialect).