aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/volume_layout.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-03-29 12:38:27 +0500
committerGitHub <noreply@github.com>2024-03-29 00:38:27 -0700
commit9c1e0f5811c95841b5628952ab09e6b8e219e6cb (patch)
treeeb5627eda5b3d1e446f94ff90494169b15e685a1 /weed/topology/volume_layout.go
parentdf40908e578fdf0d41044a5d521c961c95b0ab55 (diff)
downloadseaweedfs-9c1e0f5811c95841b5628952ab09e6b8e219e6cb.tar.xz
seaweedfs-9c1e0f5811c95841b5628952ab09e6b8e219e6cb.zip
[master] grow volumes if no writable volumes in current dataCenter (#5434)
* grow volumes if no writable volumes in current dataCenter https://github.com/seaweedfs/seaweedfs/issues/3886 * fix tests with volume grow * automatic volume grow one volume * add ErrorChunkAssign metrics
Diffstat (limited to 'weed/topology/volume_layout.go')
-rw-r--r--weed/topology/volume_layout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index 516d6a947..3c1c31aef 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -336,7 +336,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (vi
return
}
}
- return vid, count, locationList, shouldGrow, fmt.Errorf("No writable volumes in DataCenter:%v Rack:%v DataNode:%v", option.DataCenter, option.Rack, option.DataNode)
+ return vid, count, locationList, true, fmt.Errorf("No writable volumes in DataCenter:%v Rack:%v DataNode:%v", option.DataCenter, option.Rack, option.DataNode)
}
func (vl *VolumeLayout) HasGrowRequest() bool {