-
Notifications
You must be signed in to change notification settings - Fork 21
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
[BUG] EventExecutor exception #358
Comments
This looks to be a bug in the EventExecutor rather than just a flaky test. Writing to a channel will throw if the channel has been closed. There is a purple note about it here: https://learn.microsoft.com/en-us/dotnet/core/extensions/channels#bounding-strategies There isn't any synchronization between shutdown and the event processing loop.
Theoretically this could happen in real situations and not jsut a test. It seems the typical pattern is for the producer to close the channel after it has exhausted things it wants to produce. So, typically I think that writes and completing the channel would be happening either on the same thread, or would be synchronized. In our case though I think we could just handle the exception from the WriteAsync. |
@kinyoklion Thanks for investigating this. I changed the title and description to better align with your findings. |
Description
We are currently experiencing some flaky unit tests that we should tackle. Example output:
As part of the debugging, we can try using the
dotnet test—- blame
to understand what is wrong.Notes
The text was updated successfully, but these errors were encountered: