-
Notifications
You must be signed in to change notification settings - Fork 39
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
Outbox messages are store with defferent "EndpointName" and "ActualEndpointName" #165
Comments
It looks like a possible bug, yes. Can you please provide a full project that reproduce the issue? It's hard to figure it out without seeing the entire configuration. |
I wrote a message but forgot to send it.
|
I can't provide full project, I'm not owner. If you need a full project that reproduce the issue, it will take time |
It doesn't have to be the same project. Anything I can run to reproduce the issue would be enough. If I can't debug it is gonna be difficult to fix it. |
Hi, I encountered the same problem in my tests. When sending messages of different types with Follow the steps to reproduce: Code:
The error occurs according to the code above, and will also occur if the commit in the DbContext after sending the first and second message |
Can you provide a working project that reproduces the issue? |
Here's the sample project, let me know if I need more info, thanks. |
@BEagle1984 are you good ? Any news about that issue ? Or any advice how could we workaround that behaviour? |
I unfortunately didn't have time to debug this issue yet. An obvious workaround would be to not use the outbox but I guess it's not an option for you. |
@BEagle1984 , dont you use outbox in production ? |
Not me personally, as I don't have the need in my current projects. But some colleagues do and I never heard of this issue. Maybe different version, different circumstances, etc. |
In OutboxProduceStrategyImplementation I think trying to cache the IProducer is causing the issue.
Does this fix sound reasonable? Thanks |
I'm very sorry, I didn't have time yet to look deeply into the issue. Your explanation makes sense and the fix seems indeed reasonable. Pack it into a PR. 🙂 Thanks a lot! 😎 |
@BEagle1984 I have created a PR, but the pipeline is failing on a test. I can't get this test to fail locally. Any ideas? https://github.com/BEagle1984/silverback/pull/188/checks?check_run_id=11459889363 |
It's ok, it's probably flaky on the pipeline. I'm trying to make the tests more reliable but most of the improvements have been implemented for the upcoming big release and not back ported to the current one (in master). I'm checking your pr. |
Co-authored-by: Paul Cooke <[email protected]> Refs: #165
I'm still trying to figure out what happened with the test but I uploaded a version (v4.1.1-beta.1) to nuget.org which includes this PR. |
Yes, we will update to the new package tomorrow and start our tests. Thank you |
Hello everyone, I did a test regarding the scenario of this example and messages of different types were stored, sent and consumed correctly. |
@BEagle1984 when are you planning to release the final version of 4.1.1 ? Currently its |
I will release this weekend or at the beginning of next week. Did you try the beta @alefcarlos ? |
@BEagle1984, @davimorao and I work together rs We tried the beta and everything worked good! @cookie-bytes did you try that? |
Yes, tested and working as expected. It has not been through performance testing though. |
Published v4.1.1 including the fix |
I expect "ActualEndpointName" equals "EndpointName" in the outbox table, but it's defferent (see screanschort).
Here outbound configuration
This seems to be the cause of the error:
The text was updated successfully, but these errors were encountered: