Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 15, 2025

Backport of #7625 to release/9.1

/cc @sebastienros

Customer Impact

Each Event Hubs health check instance (attempt) will create a new client that won't be disposed potentially inducing memory leaks.

Testing

Verified manually and added a unit test for all EH clients.

Risk

Functional tests are passing. Low risk.

Regression?

New feature in 9.1: component health checks for Event Hubs.

@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Feb 15, 2025
[ConditionalFact]
public void HealthChecksClientsAreReused()
{
SkipIfHealthChecksAreNotSupported();
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't HealthChecks always be supported for EventHubs now? Why is this check needed?

Copy link
Member

Choose a reason for hiding this comment

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

I copied it from the base component class test. I assumed it didn't hurt. And it won't break if for any reason the heathcheck is not supported in a new or updated client. I'll remove it in main.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

LGTM. The test comment can be addressed in main if there is a code change necessary.

@sebastienros sebastienros requested review from davidfowl and removed request for sebastienros February 18, 2025 19:05
@danmoseley danmoseley merged commit 859d0d3 into release/9.1 Feb 18, 2025
5 checks passed
@danmoseley danmoseley deleted the backport/pr-7625-to-release/9.1 branch February 18, 2025 20:21
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants