Skip to content

HHH-19682 - Add Support for GaussDB Lock Timeout (lockwait_timeout) #10693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2025

Conversation

SweetWuXiaoMei
Copy link
Contributor

@SweetWuXiaoMei SweetWuXiaoMei commented Aug 5, 2025

The current Hibernate ORM implementation lacks proper support for GaussDB's lock timeout (lockwait_timeout). The following adaptations are required:

  1. ​Correctly parse lockwait_timeout return values​ (support formats like "0", "4s", "20min", etc.).

  2. Support setting lock timeout via set local lockwait_timeout​ (unit: milliseconds).

  3. Handle special cases for SKIP_LOCKED and NO_WAIT​ (throw explicit exceptions if GaussDB does not support them).


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.


https://hibernate.atlassian.net/browse/HHH-19682

Copy link
Member

@sebersole sebersole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sebersole sebersole merged commit 88f2a06 into hibernate:main Aug 6, 2025
23 of 24 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.

3 participants