Skip to content

Conversation

@gavinking
Copy link
Member

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Mar 31, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [a4c001b, e1cc2a7, 9fe1c94, be482a3, 00682b3, c433f70, 71f9b91, a85ea95, 4e70744]

› This message was automatically generated.

@gavinking gavinking force-pushed the mysql-maria-query-timeout branch from 4b1adcd to 4a23be7 Compare April 1, 2025 08:23
@gavinking gavinking changed the title throw QueryTimeoutException and LockTimeoutException on MySQL and Maria cleanups around QueryTimeoutException and LockTimeoutException Apr 1, 2025
@gavinking gavinking force-pushed the mysql-maria-query-timeout branch 2 times, most recently from 270e7a1 to 9bfaeec Compare April 1, 2025 08:36
…res and h2

this is perhaps not *perfectly* correct for Postgres, but I believe it's good
enough for our purposes (this error code can occur in some other situations,
but they are very unlikely to affect us, it seems to me)
@gavinking gavinking force-pushed the mysql-maria-query-timeout branch from 9bfaeec to 89b01c8 Compare April 1, 2025 08:40
- PessimisticLockException dupes the role of LockAcquisitionException
- We should not have database-specific codes on SQLStateConversionDelegate
- throw LAE instead of PLE on MySQL and Maria
we don't have this for the other dialects, even though they all behave similarly
@gavinking gavinking force-pushed the mysql-maria-query-timeout branch from 89b01c8 to fa25af2 Compare April 1, 2025 08:58
there's nothing I hate more than tests for log messages!

Log messages are not part of the specified behavior of the library,
and so they can't have tests. Your program should never depend on
the behavior of the log messages written by Hibernate.
@gavinking gavinking force-pushed the mysql-maria-query-timeout branch from fa25af2 to a85ea95 Compare April 1, 2025 08:59
@gavinking gavinking force-pushed the mysql-maria-query-timeout branch from ebf8859 to 4e70744 Compare April 1, 2025 11:17
@gavinking gavinking merged commit 0b71d3b into hibernate:main Apr 1, 2025
22 of 25 checks passed
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