diff options
| author | chrislu <chris.lu@gmail.com> | 2025-12-12 23:31:36 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-12-12 23:31:36 -0800 |
| commit | 2ef6046c5e698f6cfbc41e9aa63948ed565de5fb (patch) | |
| tree | b66407c76801eed538a98515c1ab47dedbed8f4c | |
| parent | 662a6ac8ee45caede35b82f4c5527cc30c0de0c2 (diff) | |
| download | seaweedfs-2ef6046c5e698f6cfbc41e9aa63948ed565de5fb.tar.xz seaweedfs-2ef6046c5e698f6cfbc41e9aa63948ed565de5fb.zip | |
volume.fsck: increase default cutoffTimeAgo from 5 minutes to 5 hours
This change makes the fsck check more conservative by only considering
chunks older than 5 hours as potential orphans. A 5 minute window was
too aggressive and could incorrectly flag recently written chunks,
especially in busy systems or during backup operations.
Addresses #7649
| -rw-r--r-- | weed/shell/command_volume_fsck.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go index 878109ecb..0840e6533 100644 --- a/weed/shell/command_volume_fsck.go +++ b/weed/shell/command_volume_fsck.go @@ -94,7 +94,7 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io. c.forcePurging = fsckCommand.Bool("forcePurging", false, "delete missing data from volumes in one replica used together with applyPurging") purgeAbsent := fsckCommand.Bool("reallyDeleteFilerEntries", false, "<expert only!> delete missing file entries from filer if the corresponding volume is missing for any reason, please ensure all still existing/expected volumes are connected! used together with findMissingChunksInFiler") tempPath := fsckCommand.String("tempPath", path.Join(os.TempDir()), "path for temporary idx files") - cutoffTimeAgo := fsckCommand.Duration("cutoffTimeAgo", 5*time.Minute, "only include entries on volume servers before this cutoff time to check orphan chunks") + cutoffTimeAgo := fsckCommand.Duration("cutoffTimeAgo", 5*time.Hour, "only include entries on volume servers before this cutoff time to check orphan chunks") modifyTimeAgo := fsckCommand.Duration("modifyTimeAgo", 0, "only include entries after this modify time to check orphan chunks") c.verifyNeedle = fsckCommand.Bool("verifyNeedles", false, "check needles status from volume server") |
