Skip to content

Conversation

@dreab8
Copy link
Member

@dreab8 dreab8 commented Nov 4, 2025

Fix #2651

The PR implements the Reactive version of JdbcSelectWithActions and of the new PostAction and PreAction (ReactiveLockTimeoutHandler and ReactiveLockTimeoutHandler).

The PR does not implement the Reactive version of CollectionLockingAction but in order to use it a Reactive version of org.hibernate.query.SelectionQuery#setLockScope(Locking.Scope lockScope); method need to be added.

@hibernate-github-bot hibernate-github-bot bot changed the title Implemented Reactive versions of PostAction, PreAction and JdbcSelectWithActions [wip/4.2] Implemented Reactive versions of PostAction, PreAction and JdbcSelectWithActions Nov 4, 2025
@hibernate-github-bot hibernate-github-bot bot added the wip/4.2 Label for pull requests targeting [wip/4.2] branch. label Nov 4, 2025
@dreab8 dreab8 force-pushed the issue#2651_4.2 branch 4 times, most recently from 229542e to a48c3b8 Compare November 6, 2025 12:56
@DavideD DavideD force-pushed the wip/4.2 branch 2 times, most recently from b0fdbef to b543eb0 Compare November 10, 2025 16:30
@DavideD DavideD added the waiting We are waiting for another PR or issue to be solved before merging this one label Nov 10, 2025
@DavideD DavideD added this to the 4.2.0.Beta1 milestone Nov 10, 2025
@DavideD
Copy link
Member

DavideD commented Nov 10, 2025

We need to wait for the next ORM 7.2 release

Copy link
Member

@DavideD DavideD left a comment

Choose a reason for hiding this comment

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

Thanks @dreab8,
it looks good overall, but there some small things to change.

ReactiveListResultsConsumer.UniqueSemantic.ALLOW
).thenCompose( results -> {
if ( isEmpty( results ) ) {
throw new AssertionFailure( "Expecting results" );
Copy link
Member

Choose a reason for hiding this comment

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

Can't we add anything else to the error message? What should have the query returned? Something related to a lock I imagine.

@DavideD
Copy link
Member

DavideD commented Nov 11, 2025

I upgraded main to ORM 7.2.0.CR2, could you rebase it there, please?

@DavideD
Copy link
Member

DavideD commented Nov 11, 2025

I upgraded main to ORM 7.2.0.CR2, could you rebase it there, please?

Just in case, you don't have to create a new PR, you can just change the base branch in this one

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

Labels

waiting We are waiting for another PR or issue to be solved before merging this one wip/4.2 Label for pull requests targeting [wip/4.2] branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants