vadimartynov
8aae82dd71
Added context for the MasterClient's methods to avoid endless loops ( #5628 )
* 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
6 months ago
chrislu
364bb6c7b4
avoid ticker leak
7 months ago
binbinshi
30b48ad614
see_dat add print name ( #4930 )
1 year ago
wusong
670e2185e4
fix: fid mismatch ( #4554 )
Co-authored-by: wang wusong <wangwusong@virtaitech.com>
2 years ago
chrislu
5db9fcccd4
refactoring
2 years ago
chrislu
81fdf3651b
grpc connection to filer add sw-client-id header
2 years ago
James Hartig
4c85da7844
Include meta in ReadAllNeedles ( #3991 )
This is useful for doing backups on the data so we can accurately store the
last modified time, the compression state, and verify the crc.
Previously we were doing VolumeNeedleStatus and then an HTTP request which
needlessly read from the dat file twice.
2 years ago
chrislu
70a4c98b00
refactor filer_pb.Entry and filer.Entry to use GetChunks()
for later locking on reading chunks
2 years ago
chrislu
870a30665b
close responses
2 years ago
chrislu
4ffbda1c43
fix building for unmaintained
2 years ago
chrislu
eaeb141b09
move proto package
2 years ago
chrislu
13b9a52f80
fix deprecated functions
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
chrislu
64f3d6fb6e
metadata subscription uses client epoch
2 years ago
guol-fnst
ac694f0c8f
rename parameter and reuse functions
rename milestone to watermark
2 years ago
creeew
02ae102731
fix filer.sync missing source srv uploaded files to target when target down
3 years ago
chrislu
a2b101a737
subscribe metadata between a range
3 years ago
Nat Makarevitch
b72f0634d7
minor (typos...), done while reading around
3 years ago
chrislu
5c87fcc6d2
add client id for all metadata listening clients
3 years ago
chrislu
9f9ef1340c
use streaming mode for long poll grpc calls
streaming mode would create separate grpc connections for each call.
this is to ensure the long poll connections are properly closed.
3 years ago
Eng Zer Jun
a23bcbb7ec
refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
Chris Lu
225b019fe0
stream read multiple volumes in a volume server
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
67949e25e9
add optional delay
3 years ago
Chris Lu
6923af7280
refactoring
3 years ago
Chris Lu
68ea99190f
add additionalPathPrefixes
3 years ago
Chris Lu
6b743dbbf9
refactor client subscribe metadata
3 years ago
byunghwa.yun
285fdd2dd5
Add the additional meta log
3 years ago
Chris Lu
cc7714fdbe
logging changes to debug
4 years ago
Chris Lu
a852f8a3f5
some code to stress test the meta data events
4 years ago
Chris Lu
2586621362
minor
4 years ago
bingoohuang
cf552417a7
minFreeSpace refactored
4 years ago
Chris Lu
7635f6b9fa
disk file avoid file.Stat()
4 years ago
Chris Lu
6daa932f5c
refactoring to get master function, instead of passing master values directly
this will enable retrying later
4 years ago
Chris Lu
487e435679
adjust http max idle connections per host
related to https://github.com/chrislusf/seaweedfs/issues/1802
4 years ago
bingoohuang
7256902fb0
fix typo offset.ToAcutalOffset to offset.ToActualOffset
4 years ago
Chris Lu
ec052f75d0
add example scripts
4 years ago
Chris Lu
283d584141
update to correct block size
4 years ago
Chris Lu
c693c98c15
write a lot of files
4 years ago
Chris Lu
3f7d1d1bf1
Only wait on retryable requests
4 years ago
Chris Lu
f2723c1bc8
do not idx file format
revert c9ab8d05fa
4 years ago
Chris Lu
75de7002ff
adjust size
4 years ago
Chris Lu
daf0a449f7
properly cancel context for streaming grpc
4 years ago
Chris Lu
eb7929a971
rename filer2 to filer
4 years ago
Chris Lu
c026eb0592
refactoring
4 years ago
Chris Lu
332caf0cd7
maintain the unmaintained
4 years ago
Chris Lu
6a92f0bc7a
refactoring to typed Size
Go is amazing with refactoring!
4 years ago
Chris Lu
4703a3daad
add an example
4 years ago
James Hartig
ad12f77891
unmaintained: Added diff_volume_servers
4 years ago
Chris Lu
3080c197e3
rename UnCompressData to DecompressData
5 years ago