Skip to content
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

Reactive Panache LockModeType.PESSIMISTIC_WRITE not supported #40285

Open
alexjaravete opened this issue Apr 25, 2024 · 3 comments
Open

Reactive Panache LockModeType.PESSIMISTIC_WRITE not supported #40285

alexjaravete opened this issue Apr 25, 2024 · 3 comments
Labels
area/panache kind/bug Something isn't working

Comments

@alexjaravete
Copy link

alexjaravete commented Apr 25, 2024

Describe the bug

When using findById(id, LockModeType.PESSIMISTIC_WRITE) Quarkus throws the following error: JPA error: java.lang.UnsupportedOperationException

Are Locks not supported with Reactive Panache?

Expected behavior

for update should be added to the SQL Query.

Actual behavior

Throws JPA error: java.lang.UnsupportedOperationException

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

openjdk version "17.0.11" 2024-04-16 LTS OpenJDK Runtime Environment Corretto-17.0.11.9.1 (build 17.0.11+9-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.11.9.1 (build 17.0.11+9-LTS, mixed mode, sharing)

Quarkus version or git rev

3.8.3

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

@alexjaravete alexjaravete added the kind/bug Something isn't working label Apr 25, 2024
Copy link

quarkus-bot bot commented Apr 25, 2024

/cc @FroMage (panache), @loicmathieu (panache)

@loicmathieu
Copy link
Contributor

Can you provide the full stack trace and a reproducer?

@alexjaravete
Copy link
Author

After posting the same issue to the hibernate-reactive repository, it seems to be a bug with hibernate-reactive directly.
This is the issue: hibernate/hibernate-reactive#1905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/panache kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants