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

bug: Remove download server UDS file on client startup if UDS file al… #951

Merged

Conversation

e-ngo
Copy link
Contributor

@e-ngo e-ngo commented Jan 23, 2025

…ready exists...

On dfdaemon startup, check if the UDS file exists. If it does, remove it.

This helps in the cases where dfdaemon process has a non-graceful tear down and the UDS is mounted on hostpath. When dfdaemon restarts, it will never be able to bind to the UDS. Update the start up to check and delete the UDS if it exists...

Description

^

Related Issue

dragonflyoss/dragonfly#3782

Motivation and Context

Allows us to gracefully handle unexpected restarts.

Screenshots (if appropriate)

@e-ngo e-ngo requested a review from a team as a code owner January 23, 2025 20:19
Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 32.66%. Comparing base (d4096db) to head (0c2c652).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #951   +/-   ##
=======================================
  Coverage   32.66%   32.66%           
=======================================
  Files          60       60           
  Lines        9792     9792           
=======================================
  Hits         3199     3199           
  Misses       6593     6593           
Files with missing lines Coverage Δ
dragonfly-client/src/grpc/dfdaemon_download.rs 0.00% <ø> (ø)

Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

@gaius-qi gaius-qi merged commit 785d464 into dragonflyoss:main Jan 26, 2025
6 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.

2 participants