-
-
Notifications
You must be signed in to change notification settings - Fork 102
[wip/4.2] Implemented Reactive versions of PostAction, PreAction and JdbcSelectWithActions #2732
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
base: wip/4.2
Are you sure you want to change the base?
Conversation
hibernate-reactive-core/src/test/java/org/hibernate/reactive/FindByIdWithLockTest.java
Outdated
Show resolved
Hide resolved
229542e to
a48c3b8
Compare
b0fdbef to
b543eb0
Compare
|
We need to wait for the next ORM 7.2 release |
DavideD
left a comment
There was a problem hiding this 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.
...ava/org/hibernate/reactive/sql/exec/internal/lock/ReactiveConnectionLockTimeoutStrategy.java
Outdated
Show resolved
Hide resolved
...te-reactive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/LockHelper.java
Outdated
Show resolved
Hide resolved
...nate/reactive/sql/exec/internal/lock/ReactiveCockroachConnectionLockTimeoutStrategyImpl.java
Outdated
Show resolved
Hide resolved
...nate/reactive/sql/exec/internal/lock/ReactiveCockroachConnectionLockTimeoutStrategyImpl.java
Outdated
Show resolved
Hide resolved
...tive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/ReactiveTableLock.java
Outdated
Show resolved
Hide resolved
| ReactiveListResultsConsumer.UniqueSemantic.ALLOW | ||
| ).thenCompose( results -> { | ||
| if ( isEmpty( results ) ) { | ||
| throw new AssertionFailure( "Expecting results" ); |
There was a problem hiding this comment.
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.
...tive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/ReactiveTableLock.java
Outdated
Show resolved
Hide resolved
...tive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/ReactiveTableLock.java
Show resolved
Hide resolved
...tive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/ReactiveTableLock.java
Outdated
Show resolved
Hide resolved
|
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 |
…ction` and `JdbcSelectWithActions`
a48c3b8 to
b8e1b34
Compare
…teException to Log
Fix #2651
The PR implements the Reactive version of
JdbcSelectWithActionsand of the newPostActionandPreAction(ReactiveLockTimeoutHandlerandReactiveLockTimeoutHandler).The PR does not implement the Reactive version of
CollectionLockingActionbut in order to use it a Reactive version oforg.hibernate.query.SelectionQuery#setLockScope(Locking.Scope lockScope);method need to be added.