diff options
| author | chrislu <chris.lu@gmail.com> | 2025-10-26 19:21:39 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-10-26 19:21:39 -0700 |
| commit | 4605a3044606adae7efb5e96bcd587e606438abf (patch) | |
| tree | 8b7c8c371088ab9ef197c1ec6c015141ee4ea830 | |
| parent | c6968ffd968e883bfad231700d829006b1a05c89 (diff) | |
| download | seaweedfs-4605a3044606adae7efb5e96bcd587e606438abf.tar.xz seaweedfs-4605a3044606adae7efb5e96bcd587e606438abf.zip | |
unexpected error
| -rw-r--r-- | weed/storage/disk_location_ec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/storage/disk_location_ec.go b/weed/storage/disk_location_ec.go index 8ba4339ce..452ae114c 100644 --- a/weed/storage/disk_location_ec.go +++ b/weed/storage/disk_location_ec.go @@ -359,7 +359,10 @@ func (l *DiskLocation) validateEcVolume(collection string, vid needle.VolumeId) datExists = true expectedShardSize = calculateExpectedShardSize(datFileInfo.Size()) } else if !os.IsNotExist(err) { + // If stat fails with unexpected error (permission, I/O), fail validation + // Don't treat this as "distributed EC" - it could be a temporary error glog.Warningf("Failed to stat .dat file %s: %v", datFileName, err) + return false } shardCount := 0 |
