aboutsummaryrefslogtreecommitdiff
path: root/weed/wdclient
AgeCommit message (Collapse)AuthorFilesLines
2024-06-14Added context for the MasterClient's methods to avoid endless loops (#5628)vadimartynov1-20/+47
* 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
2023-09-16balancer workschrislu1-3/+3
2023-08-24Implement SRV lookups for filer (#4767)Nico D'Cotta2-9/+11
2023-07-06clone volume locations in case they are changedchrislu1-0/+13
fix https://github.com/seaweedfs/seaweedfs/issues/4642
2023-06-19remove unused cluster node leaderchrislu1-2/+2
2023-03-26print wait in progresschrislu1-0/+1
2022-10-23remove volume server tcp clientchrislu1-97/+0
2022-09-15docs(wdclient): readability fix (#3685)Ryan Russell1-1/+1
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-09-14refactor(exclusive_locker): `Interval` readability batch of updates (#3668)Ryan Russell1-6/+6
* refactor(filechunk_manifest): `localProcesed` -> `localProcessed` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor: `saveChunkedFileIntevalToStorage` -> `saveChunkedFileIntervalToStorage` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor: `SafeRenewInteval` -> `SafeRenewInterval` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor: `InitLockInteval` -> `InitLockInterval` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor: `RenewInteval` -> `RenewInterval` Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-09-14docs: `indicates` readability comment fix (#3659)Ryan Russell2-2/+2
2022-09-11skip deltaBeat if dn is zero (#3630)Konstantin Lebedev1-0/+4
* skip deltaBeat https://github.com/seaweedfs/seaweedfs/issues/3629 * fix GrpcPort * skip url :0 * skip empty DataCenter or Rack * skip empty heartbeat Ip * dell msg add DataCenter * comment todo * fix
2022-09-06[filer] masterClient updates volume adjust log level (#3610)Konstantin Lebedev1-5/+8
2022-09-05fix bug due to data racing on VidMap (#3606)LHHDZ3-6/+48
2022-08-30master client: use GetMaster() for latest master addresschrislu1-7/+4
2022-08-30more detailed errorchrislu1-1/+1
2022-08-30rename variablechrislu1-12/+12
2022-08-30avoid race conditions access to MasterClient.currentMaster (#3538)Konstantin Lebedev1-12/+23
https://github.com/seaweedfs/seaweedfs/issues/3510
2022-08-26rename varaiblechrislu1-6/+6
2022-08-26avoid race conditions for OnPeerUpdate (#3525)Konstantin Lebedev1-1/+11
https://github.com/seaweedfs/seaweedfs/issues/3524
2022-08-23remove old raft servers if they don't answer to pings for too long (#3398)askeipx1-5/+6
* 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-08-22refactoringchrislu1-7/+8
2022-08-15remove logschrislu1-1/+1
2022-08-11avoid infinite loop WaitUntilConnected() (#3431)Konstantin Lebedev1-4/+4
https://github.com/seaweedfs/seaweedfs/issues/3421
2022-08-04filer prefer volume server in same data center (#3405)Konstantin Lebedev2-12/+30
* initial prefer same data center https://github.com/seaweedfs/seaweedfs/issues/3404 * GetDataCenter * prefer same data center for ReplicationSource * GetDataCenterId * remove glog
2022-08-04refactor FilerRequest metrics (#3402)Konstantin Lebedev1-2/+2
* refactor FilerRequest metrics * avoid double count proxy * defer to
2022-07-29fix testchrislu1-1/+1
2022-07-29add back rackchrislu1-0/+1
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu6-16/+16
2022-07-28add dc and rackchrislu1-1/+4
2022-07-22Merge pull request #3350 from shichanglin5/optimize_masterclient_vidmapChris Lu3-13/+123
Solve the problem that `LookupFileId` lookup urls is empty due to lea…
2022-07-22fix `vid_map_test` testsLHHDZ1-10/+16
2022-07-22Solve the problem that `LookupFileId` lookup urls is empty due to leader ↵LHHDZ3-13/+117
switching The vidMap structure is modified to a linked list structure (the length is limited to 5). When the vidMap is reset, the current vidMap is added to the new vidMap as a cache node. When the query locations is empty, the cache node is searched to avoid problems when the master switches leaders.
2022-07-15Use fallback if urls are not foundKonstantin Lebedev1-3/+3
2022-06-30fixed `volume xx not found` caused by missing VolumeLocation events石昌林1-30/+38
When the requested master node is the leader, `VolumeLocation` or `ClusterNodeUpdate` may be returned here. If it is `VolumeLocation`, the update will be performed while resetting the vidMap, otherwise the event will be lost
2022-06-27currentMaster redirectedKonstantin Lebedev1-2/+2
2022-06-27avoid set currentMaster k8s svc.local discoveruy service domainsKonstantin Lebedev1-2/+2
https://github.com/chrislusf/seaweedfs/issues/2589
2022-06-25Merge branch 'master' of https://github.com/chrislusf/seaweedfschrislu1-2/+17
2022-06-25fix entry full url lookupchrislu1-1/+4
2022-06-24Merge pull request #3228 from shichanglin5/fix_volumeNotFoundChris Lu1-2/+17
When the connection with the leader is disconnected, the vidMap shoul…
2022-06-25Code comment optimization石昌林1-9/+8
2022-06-24When the connection with the leader is disconnected, the vidMap should not ↵石昌林1-2/+18
be reset immediately, but should be reset after connecting to a new leader
2022-06-24masterclient: fallback to directly querying master in case of missing volume ↵chrislu2-4/+30
id location
2022-06-15fix(wdclient): GetLocations returnningfd1-1/+1
2022-05-30fresh filer store bootstrap from the oldest peerchrislu1-2/+2
2022-05-01filer: add filer groupchrislu1-18/+23
2022-04-05erasure coding: tracking encoded/decoded volumeschrislu2-6/+68
If an EC shard is created but not spread to other servers, the masterclient would think this shard is not located here.
2022-04-01check cluster connectivitieschrislu1-0/+5
2022-03-26refactor: change masters from a slice to a mapchrislu1-2/+2
2022-02-04move error to a separate filechrislu1-6/+6
This file contains metric names for all errors The naming convention is ErrorSomeThing = "error.some.thing"
2022-01-24new master metricsKonstantin Lebedev1-1/+8