Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/9.1] Reuse Event Hubs client for health checks - #7628

#7628
Merged
danmoseley merged 1 commit into
release/9.1microsoft/aspire:release/9.1from
backport/pr-7625-to-release/9.1microsoft/aspire:backport/pr-7625-to-release/9.1Copy head branch name to clipboard
Feb 18, 2025
Merged

[release/9.1] Reuse Event Hubs client for health checks#7628
danmoseley merged 1 commit into
release/9.1microsoft/aspire:release/9.1from
backport/pr-7625-to-release/9.1microsoft/aspire:backport/pr-7625-to-release/9.1Copy head branch name to clipboard

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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.

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.