-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Exception while transactionAbort renders ConsumerTransactionState useless #51
Comments
It's not easy to keep the client state clean when the underlying actions fail. But it would be nice if we could provide a way to get it back to a clean state again... not yet sure how to do so. Could you already determine the cause for the root exception? |
I am using the client in a long running php process which sends messages inside transactions. Because of an error in the domain logic I need to call In my case the server repsonds with a message with a different receipt-id. |
debugging further revealed the underlying error:
I will check now where this comes from. |
@staabm is this still a problem with our latest version? |
@staabm Should we add a test for this or is this more or less gone? |
when a Exception occurs while
ConsumerTransactionState->abort()
, e.g.UnexpectedResponseException
inClient->waitForReceipt()
you can no longer begin new transactions.Because of such a
UnexpectedResponseException
the transition fromConsumerTransactionState
back to theConsumerState
does not happen. This leads to aInvalidStateException($this, __FUNCTION__)
when callingConsumerTransactionState->begin()
afterwards.Actually I am not 100% sure what the expected flow should look like, but atm I get some kind of dead-lock situation.
For the time beeing I will check why I get the underlying exception in the first place ;).
The text was updated successfully, but these errors were encountered: