aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_grpc_admin.go
AgeCommit message (Collapse)AuthorFilesLines
13 daysfix: restore volume mount when VolumeConfigure fails (#7669)Chris Lu1-0/+5
* fix: restore volume mount when VolumeConfigure fails When volume.configure.replication command fails (e.g., due to corrupted .vif file), the volume was left unmounted and the master was already notified that the volume was deleted, causing the volume to disappear. This fix attempts to re-mount the volume when ConfigureVolume fails, restoring the volume state and preventing data loss. Fixes #7666 * include mount restore error in response message
2025-06-19pass volume version when creating a volumechrislu1-1/+3
2025-06-03change version directorychrislu1-4/+3
2024-09-24fix(volume): don't persist RO state in specific cases (#6058)Max Denushev1-1/+1
* fix(volume): don't persist RO state in specific cases * fix(volume): writable always persist
2024-06-14Added context for the MasterClient's methods to avoid endless loops (#5628)vadimartynov1-3/+3
* Added context for the MasterClient's methods to avoid endless loops * Returned WithClient function. Added WithClientCustomGetMaster function * Hid unused ctx arguments * Using a common context for the KeepConnectedToMaster and WaitUntilConnected functions * Changed the context termination check in the tryConnectToMaster function * Added a child context to the tryConnectToMaster function * Added a common context for KeepConnectedToMaster and WaitUntilConnected functions in benchmark
2024-03-25fix nil volume data backendchrislu1-0/+3
fix https://github.com/seaweedfs/seaweedfs/issues/5417
2023-10-09 fix: skipping checking active volumes with the same number of files at the ↵Konstantin Lebedev1-0/+2
moment (#4893) * fix: skipping checking active volumes with the same number of files at the moment https://github.com/seaweedfs/seaweedfs/issues/4140 * refactor with comments https://github.com/seaweedfs/seaweedfs/issues/4140 * add TestShouldSkipVolume --------- Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
2023-06-12Delete volume is empty (#4561)Konstantin Lebedev1-1/+1
* use onlyEmpty for deleteVolume https://github.com/seaweedfs/seaweedfs/issues/4559 * fix IsEmpty * fix test --------- Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
2023-06-05Fix no more writable volumes by delay judgment (#4548)wusong1-0/+2
* fix nomore writables volumes while disk free space is sufficient by time delay * reset --------- Co-authored-by: wang wusong <wangwusong@virtaitech.com>
2023-01-20grpc connection to filer add sw-client-id headerchrislu1-1/+1
2022-11-14Lazy loading (#3958)Guo Lei1-1/+3
* types packages is imported more than onece * lazy-loading * fix bugs * fix bugs * fix unit tests * fix test error * rename function * unload ldb after initial startup * Don't load ldb when starting volume server if ldbtimeout is set. * remove uncessary unloadldb * Update weed/command/server.go Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> * Update weed/command/volume.go Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: guol-fnst <goul-fnst@fujitsu.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2022-09-14master: implement grpc VolumeMarkWritablechrislu1-19/+45
fix https://github.com/seaweedfs/seaweedfs/issues/3657
2022-09-12fixingchrislu1-2/+2
2022-09-11volume server: synchronously report volume readonly status to masterchrislu1-0/+26
fix https://github.com/seaweedfs/seaweedfs/issues/3628
2022-08-23remove old raft servers if they don't answer to pings for too long (#3398)askeipx1-3/+4
* remove old raft servers if they don't answer to pings for too long add ping durations as options rename ping fields fix some todos get masters through masterclient raft remove server from leader use raft servers to ping them CheckMastersAlive for hashicorp raft only * prepare blocking ping * pass waitForReady as param * pass waitForReady through all functions * waitForReady works * refactor * remove unneeded params * rollback unneeded changes * fix
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-11/+11
2022-06-12collect volume server statuschrislu1-3/+7
2022-04-16add timing info during ping operationchrislu1-4/+17
2022-04-01use constantschrislu1-3/+4
2022-04-01master supports grpc pingchrislu1-0/+10
2022-04-01filer supports grpc pingchrislu1-0/+7
2022-04-01volume server adds ping functionchrislu1-0/+12
2021-08-08volume: support concurrent download data size limitChris Lu1-2/+2
2021-02-16use hdd instead of empty stringChris Lu1-1/+1
2021-02-16this can compile now!!!Chris Lu1-2/+1
2020-12-13allocate volume by disk typeChris Lu1-0/+2
2020-09-13shell: add volumeServer.leave commandChris Lu1-0/+10
2020-08-19Added VolumeMarkWritable and VolumeStatus grpc methodsJames Hartig1-0/+28
This is necessary for copy to mark as read-only and then restore the original state afterwards.
2020-08-18pass in option to read deleted entriesChris Lu1-1/+1
not working yet
2020-08-18refactoring to typed SizeChris Lu1-1/+1
Go is amazing with refactoring!
2020-07-22Added VolumeNeedleStatus volume server grpc methodJames Hartig1-0/+42
This is needed for the diffing tool to get the cookie for a needle
2020-02-21move volume server stats to grpcChris Lu1-0/+18
2020-02-02shell: add volume.configure.replication to change replication for a volumeChris Lu1-0/+37
fix https://github.com/chrislusf/seaweedfs/issues/1192
2019-10-21adjust parameter namesChris Lu1-1/+1
2019-09-12Change joeslay paths to chrislusf pathsj.laycock1-3/+3
2019-09-04Changed the InMemory bool to a uint32 so that it can be used to alter how ↵Tom Maxwell1-1/+1
much space to reserve
2019-09-03Add InMemory to Volume Grow structurej.laycock1-1/+1
2019-09-03Changes to try and pass the URL parameters through - in memory flag not ↵Tom Maxwell1-0/+1
working still
2019-09-02Swap imports to use joeslayj.laycock1-3/+3
2019-06-26mark volume readonly before ec encodingChris Lu1-0/+16
2019-04-18refactoringChris Lu1-5/+5
2019-04-10refactor: adjust grpc API nameChris Lu1-2/+2
2019-03-23weed volume: add grpc operation to relicate a volume to localChris Lu1-4/+4
2018-12-29add volume delete grpc APIChris Lu1-0/+16
fix https://github.com/chrislusf/seaweedfs/issues/808
2018-10-15move volume mount/unmount on volume server to grpcChris Lu1-0/+32
2018-10-15migrate assign volume to grpc API on volume serverChris Lu1-1/+27
2018-10-15migrate delete collection to grpc API on volume serverChris Lu1-0/+22