Error HR000069 when with simeoultaneous requests to @ReactiveTransactional REST endpoint #27160
Unanswered
phinjensen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got an application that, for legacy compatibility, manages its own
data_lock
table for one of the models,Person
. I have a route that looks up a person and adds a lock to thedata_lock
table, then looks up and returns a child model. The resource looks like this:The
Person.lock
function is what looks up thePerson
and adds a row todata_lock
. Basically, it finds a person and user, checks to see if the person is locked (i.e. has a row referencing it in the data_lock table where the user is not the authenticated user), and if it's unlocked creates andpersist
s a new lock before returning the user:And the Lock class for
data_lock
:I'm using
@ReactiveTransactional
and sticking to PanacheEntity classes. However, I have a frontend page that fetches the/secure/person/{personId}/child/{id}
twice simeoultaneously, and the first time I do that after restarting the server, one of the requests always fails with the following error:I can post the full stack trace if it helps, but it's all library calls, not anything from my app. The weird thing is that after throwing this error the first time, any more simultaneous requests work perfectly. Trying to add a delay to the retry (the commented line in
PersonChildResource
) doesn't help.I've seen other threads and questions about this error, but most of them say either to double-check that you're using Panache for everything (I am) or that it's a bug that has since been fixed. I'm not super familiar with reactive programming, Java, or any of these libraries, so I imagine I'm just doing something wrong. If anyone could help me in the right direction, I would greatly appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions