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

Externally managed SNS/SQS clients were disposed when experimental constructor added in 7.1.0 #2638

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ramonsmits
Copy link
Member

@ramonsmits ramonsmits commented Nov 27, 2024

Externally managed SNS/SQS clients were disposed at shutdown when using new SqsTransport(IAmazonSQS, IAmazonSimpleNotificationService snsClient, bool) constructor in version https://github.com/Particular/NServiceBus.AmazonSQS/releases/tag/7.1.0

Symptoms

ObjectDisposedException on SQS and SNS clients after the transport was shutdown.

Who's affected

Users that use the new constructor added in 7.1.0

Root cause

The passed SQS and SNS client referces got disposed when the transport was shutdown as these were not correctly tracked as being "external".

Copy link
Member

@WilliamBZA WilliamBZA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add a test for this?

…bool) constructor set fields instead of property
Copy link
Member

@WilliamBZA WilliamBZA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required, just something about the names that felt off. Feel free to ignore.

@ramonsmits ramonsmits merged commit 8f69a44 into master Nov 27, 2024
3 checks passed
@ramonsmits ramonsmits deleted the fix-dispose branch November 27, 2024 13:36
ramonsmits added a commit that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants