Skip to content

Fix data race in super stream producer #397

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

Merged

Conversation

yurahaid
Copy link
Contributor

When the publisher connection is closed shortly after startup, a data race may occur between NotifyPartitionClose and the check if s.chSuperStreamPartitionClose != nil, because a mutex does not protect this code.

@Gsantomaggio
Copy link
Member

Thank you @yurahaid it looks to me.
@hiimjako ?

@Gsantomaggio Gsantomaggio added the bug Something isn't working label May 26, 2025
@Gsantomaggio Gsantomaggio merged commit 5d6886b into rabbitmq:main May 28, 2025
2 checks passed
@Gsantomaggio
Copy link
Member

Thank you @yurahaid @hiimjako

@Gsantomaggio
Copy link
Member

@yurahaid Thank you for your contributions. If you have any PR proposals to suggest, please don't hesitate to let me know or raise an issue to track.
If there aren't, I will release another version soon.

@Gsantomaggio Gsantomaggio added this to the 1.5.7 milestone Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants