Skip to content

storage: stop proxy health checker on shutdown - #1990

Merged
Zephyrcf merged 1 commit into
dragonflyoss:masterfrom
Park-Jiyeonn:fix/stop-proxy-health-checker
Jul 22, 2026
Merged

storage: stop proxy health checker on shutdown#1990
Zephyrcf merged 1 commit into
dragonflyoss:masterfrom
Park-Jiyeonn:fix/stop-proxy-health-checker

Conversation

@Park-Jiyeonn

Copy link
Copy Markdown
Contributor

Overview

Wake the proxy health-check worker when its connection is shut down or dropped. This prevents the worker from retaining proxy resources and waiting for the full health-check interval after the connection is gone.

Change Type

Please select the type of change your pull request relates to:

  • Bug Fix
  • Feature Addition
  • Documentation Update
  • Code Refactoring
  • Performance Improvement
  • Other (please describe)

Copilot AI review requested due to automatic review settings July 22, 2026 07:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves storage’s proxy health-check lifecycle by ensuring the background health-check thread is woken and exits promptly when a Connection is shut down or dropped, preventing the worker from holding proxy resources until the next health-check interval.

Changes:

  • Introduce a stop/wakeup mechanism (HealthCheckerStop) to interrupt the proxy health-check thread’s sleep.
  • Signal the health-check thread to stop on Connection::shutdown() and also in Drop for Connection.
  • Add unit tests asserting the health-check worker releases its Proxy reference on shutdown and drop.

Comment thread storage/src/backend/connection.rs
Copilot AI review requested due to automatic review settings July 22, 2026 07:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@imeoer

imeoer commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Thanks, LGTM! plz add SOB for the commit. :)

@Park-Jiyeonn
Park-Jiyeonn force-pushed the fix/stop-proxy-health-checker branch from 1221d60 to 96281c2 Compare July 22, 2026 08:51
@Zephyrcf

Copy link
Copy Markdown
Member

@Park-Jiyeonn plz squash the commits.

Wake the proxy health-check worker when its connection is shut down or dropped. This prevents the worker from retaining proxy resources and waiting for the full health-check interval after the connection is gone.

Signed-off-by: Park.Jiyeon <jiyeonnn2@icloud.com>
@Park-Jiyeonn
Park-Jiyeonn force-pushed the fix/stop-proxy-health-checker branch from 96281c2 to 4509b07 Compare July 22, 2026 09:51

@Zephyrcf Zephyrcf 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, thanks!

@Zephyrcf
Zephyrcf merged commit dbdf51a into dragonflyoss:master Jul 22, 2026
32 of 33 checks passed
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.

4 participants