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

Avoid publish race #387

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Avoid publish race #387

merged 1 commit into from
Jun 8, 2020

Conversation

ColinSullivan1
Copy link
Member

@ColinSullivan1 ColinSullivan1 commented Jun 5, 2020

Avoid a (very rare) race condition when publishing during a reconnect where the buffer writer still has the networks stream wrapped instead of the memory stream.

I published several billion messages in testing and couldn't recreate this, although logically it's there. Many thanks to @jasper-d for the help, and identifying the problem.

Resolves #381

/CC @kozlovic

Signed-off-by: Colin Sullivan [email protected]

Signed-off-by: Colin Sullivan <[email protected]>
@ColinSullivan1 ColinSullivan1 requested a review from watfordgnf June 5, 2020 22:30
@dungpa
Copy link

dungpa commented Jun 8, 2020

@ColinSullivan1 Thanks for the fix.

@ColinSullivan1 ColinSullivan1 merged commit 5b1209a into master Jun 8, 2020
@ColinSullivan1
Copy link
Member Author

Absolutely! We can cut a pre-release for you to test/use in the meantime. I will try to get that out today.

@ColinSullivan1 ColinSullivan1 deleted the fix-publish-exception branch June 25, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NotSupportedException when publishing message
3 participants