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

mount: restart mount process gracefully #4392

Merged
merged 27 commits into from
Mar 6, 2024
Merged

mount: restart mount process gracefully #4392

merged 27 commits into from
Mar 6, 2024

Conversation

davies
Copy link
Contributor

@davies davies commented Feb 1, 2024

No description provided.

@davies davies marked this pull request as draft February 1, 2024 12:57
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 18.33333% with 686 lines in your changes are missing coverage. Please review.

Project coverage is 55.31%. Comparing base (59659db) to head (d0c6f02).
Report is 2 commits behind head on main.

Files Patch % Lines
cmd/mount_unix.go 14.07% 349 Missing and 5 partials ⚠️
cmd/passfd.go 0.00% 128 Missing ⚠️
pkg/vfs/handle.go 6.45% 87 Missing ⚠️
cmd/mount.go 38.02% 35 Missing and 9 partials ⚠️
pkg/vfs/vfs.go 23.80% 30 Missing and 2 partials ⚠️
pkg/fuse/fuse.go 65.78% 10 Missing and 3 partials ⚠️
pkg/vfs/writer.go 31.25% 10 Missing and 1 partial ⚠️
pkg/meta/sql.go 57.14% 9 Missing ⚠️
pkg/meta/base.go 69.23% 2 Missing and 2 partials ⚠️
pkg/vfs/reader.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4392      +/-   ##
==========================================
- Coverage   56.00%   55.31%   -0.70%     
==========================================
  Files         156      157       +1     
  Lines       40417    41094     +677     
==========================================
+ Hits        22636    22731      +95     
- Misses      15262    15836     +574     
- Partials     2519     2527       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhijian-pro
Copy link
Contributor

Badger does not support smooth upgrades because only one database connection can be active at a time.

@zhijian-pro zhijian-pro marked this pull request as ready for review March 5, 2024 09:04
@zhijian-pro zhijian-pro changed the title [WIP] Graceful restart Graceful restart Mar 5, 2024
pkg/meta/base.go Outdated
m.sid = uint64(v)
if err = m.en.doNewSession(m.newSessionInfo()); err != nil {
return fmt.Errorf("create session: %s", err)
if err := m.en.doNewSession(m.newSessionInfo()); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should use existing session

pkg/fuse/fuse.go Outdated Show resolved Hide resolved
cmd/mount_unix.go Outdated Show resolved Hide resolved
pkg/vfs/vfs.go Show resolved Hide resolved
pkg/vfs/vfs.go Outdated Show resolved Hide resolved
pkg/vfs/handle.go Outdated Show resolved Hide resolved
@davies davies changed the title Graceful restart mount: restart mount process gracefully Mar 6, 2024
@davies davies merged commit 56b234e into main Mar 6, 2024
26 checks passed
@davies davies deleted the graceful_restart branch March 6, 2024 07:38
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