Skip to content
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

fix MergeHub_must_work_with_long_streams_when_buffer_size_is_1 #6564

Merged
merged 5 commits into from
Mar 27, 2023

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Mar 24, 2023

Changes

This is currently the raciest test in the entire test suite.

99% sure that trying to ReSharper this into a method that doesn't use tail recursion actually created a bug here that can occur for really small partitions - making the firstAttempt value mutable across all possible instances results in behavior that actually isn't comparable to using isolated function invocations in all instances. Going to run this through CI and see if that adds up.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

99% sure that trying to ReSharper this into a method that doesn't use tail recursion actually created a bug here that can occur for really small partitions - making the `firstAttempt` value mutable across all possible instances results in behavior that actually isn't comparable to using isolated function invocations in all instances. Going to run this through CI and see if that adds up.
@Aaronontheweb Aaronontheweb marked this pull request as ready for review March 27, 2023 21:04
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) March 27, 2023 21:04
@Aaronontheweb Aaronontheweb disabled auto-merge March 27, 2023 21:30
@Aaronontheweb Aaronontheweb merged commit 0a8e843 into akkadotnet:dev Mar 27, 2023
@Aaronontheweb Aaronontheweb deleted the fix-racy-Streams-specs branch March 27, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant