Skip to content

HHH-20826 Ensure upsert/insert-or-update really is executed and retry batch positions that fail if needed - #13387

Open
beikov wants to merge 3 commits into
hibernate:mainfrom
beikov:HHH-20826-2
Open

beikov wants to merge 3 commits into
hibernate:mainfrom
beikov:HHH-20826-2

Conversation

@beikov

@beikov beikov commented Sep 11, 2026

Copy link
Copy Markdown
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.



Please make sure that the following tasks are completed:
Tasks specific to HHH-20894 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

Tasks specific to HHH-20826 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

https://hibernate.atlassian.net/browse/HHH-20894
https://hibernate.atlassian.net/browse/HHH-20826

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

Documentation Preview

Documentation preview artifact not found for commit 21d5e16.
The documentation may not have changed, or the artifact may have expired.

View workflow run for details.

When two concurrent transactions inserting a row with the same primary key,
Sybase ASE would just report a constraint violation on the transaction that comes
last, even though the other transaction did not yet finish.
Setting the 'wait on uncommitted insert' configuration to 1 makes Sybase ASE
behave like a normal SQL database and wait on the insert until the fate of
the transaction that did the insert first is decided.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
67.1% Coverage on New Code (required ≥ 80%)
7.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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