Browse Source
Fix volume.fsck -forcePurging -reallyDeleteFromVolume to fail fast on filer traversal errors (#8015)
Fix volume.fsck -forcePurging -reallyDeleteFromVolume to fail fast on filer traversal errors (#8015)
* Add TraverseBfsWithContext and fix race conditions in error handling
- Add TraverseBfsWithContext function to support context cancellation
- Fix race condition in doTraverseBfsAndSaving using atomic.Bool and sync.Once
- Improve error handling with fail-fast behavior and proper error propagation
- Update command_volume_fsck to use error-returning saveFn callback
- Enhance error messages in readFilerFileIdFile with detailed context
* refactoring
* fix error format
* atomic
* filer_pb: make enqueue return void
* shell: simplify fs.meta.save error handling
* filer_pb: handle enqueue return value
* Revert "atomic"
This reverts commit 712648bc35.
* shell: refine fs.meta.save logic
---------
Co-authored-by: Chris Lu <chris.lu@gmail.com>
pull/7934/merge
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 140 additions and 68 deletions
-
16weed/command/filer_meta_backup.go
-
85weed/pb/filer_pb/filer_client_bfs.go
-
5weed/shell/command_fs_merge_volumes.go
-
5weed/shell/command_fs_meta_change_volume_id.go
-
5weed/shell/command_fs_meta_notify.go
-
64weed/shell/command_fs_meta_save.go
-
3weed/shell/command_fs_verify.go
-
25weed/shell/command_volume_fsck.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue