-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Transaction causes a DisposedObjectException during a retry scenario #1003
Comments
Facing the same issue. |
Is this issue resolved? We are having the same problem. |
@phatboyg This seems to still happen. Hypothesis: When backing out of the transaction filter scope, the transaction isn't removed from the payload. Then, when entering again, it already exists, and thus isn't created anew. |
Order matters.
This should work properly, and create a new transaction for each retry attempt. |
Yeah, that's what we're doing. It does not work for us. Looking at the TransactionFilter code, I see that it doesn't seem to discard the payload when exiting the filter. I don't know much about payloads.... are they automatically discarded when the pipe exits up a level? If not, then AddOrCreate won't run a second time. |
With Retry it will, because the retry creates a scope for each attempt, discarding anything that was added or updated within the attempt. |
This is resolved, isn't it? |
It was not resolved for me at last check, no. I will try to reproduce again tomorrow or the next day for you, however. |
@wasabii if you still see an issue, please post the bus/endpoint configuration so that I can verify it before spending any time on it. |
@wasabii any luck reproducing it with the latest /develop build? |
Also, this was verified using the unit test based on the issue: |
Is this a bug report?
Yes
Can you also reproduce the problem with the lastest version?
Yes
Environment
Steps to Reproduce
Expected Behavior
I expected a new transaction object to be available
Actual Behavior
A DisposedObjectException was thrown
Reproducible Demo
You will see in this demo that the errors occurs when we try to access the transaction during the retry.
The text was updated successfully, but these errors were encountered: