aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_loading.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-01 01:20:06 -0800
committerChris Lu <chris.lu@gmail.com>2021-03-01 01:20:06 -0800
commitc46d16b2f32108f4afce601d3c8f0a33f596bce9 (patch)
tree8978da232113a8ca1d2ec733118a0599023ab5c2 /weed/storage/volume_loading.go
parent6e43e8ce17dab9b5b99fa9449e869c910981bff9 (diff)
downloadseaweedfs-c46d16b2f32108f4afce601d3c8f0a33f596bce9.tar.xz
seaweedfs-c46d16b2f32108f4afce601d3c8f0a33f596bce9.zip
skip network error when remote volumes start
Diffstat (limited to 'weed/storage/volume_loading.go')
-rw-r--r--weed/storage/volume_loading.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index 7f70031ed..0cf603ad8 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -84,6 +84,11 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
if alreadyHasSuperBlock {
err = v.readSuperBlock()
glog.V(0).Infof("readSuperBlock volume %d version %v", v.Id, v.SuperBlock.Version)
+ if v.HasRemoteFile() {
+ // maybe temporary network problem
+ glog.Errorf("readSuperBlock remote volume %d: %v", v.Id, err)
+ err = nil
+ }
} else {
if !v.SuperBlock.Initialized() {
return fmt.Errorf("volume %s not initialized", v.FileName(".dat"))