chrislu
c29bc9a367
fix error handling
3 years ago
guosj
d68c27f82d
fix another return value bug
3 years ago
guosj
8f9aa0cddd
fix bugs in return value
3 years ago
chrislu
a129bda7d9
sync data first before stopping
3 years ago
Eng Zer Jun
b92df1654c
test: use `T.TempDir` to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
Konstantin Lebedev
ef541972f8
updated needle with fsync
3 years ago
Konstantin Lebedev
fb97e234c9
skips compact if store is stopping
3 years ago
chrislu
433fde4b18
move error to a separate file
This file contains metric names for all errors
The naming convention is ErrorSomeThing = "error.some.thing"
3 years ago
chrislu
76e297d64f
sync call to write file, avoid vif loading error
fix https://github.com/chrislusf/seaweedfs/issues/2633
3 years ago
Konstantin Lebedev
3f4e17aa24
error metrics for filer and store
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
chrislu
50ddd8c8e2
remove debug messages
fix https://github.com/chrislusf/seaweedfs/issues/2514
3 years ago
chrislu
488afa5002
volume: load volume can optionally be skipped, if ec volume exists
fix https://github.com/chrislusf/seaweedfs/issues/2489
3 years ago
chrislu
59e58c4b23
volume: fix loading old volume format
fix https://github.com/chrislusf/seaweedfs/issues/2487
3 years ago
Chris Lu
0c8dea9de8
go fmt
3 years ago
Chris Lu
c857cc7286
cloud tier: remove tagging since not all s3 vendors support this
3 years ago
Chris Lu
d04cdcf40d
s3 header add user agent
3 years ago
Chris Lu
3be3c17f59
volume vacuum: avoid timeout with streaming progress report
fix https://github.com/chrislusf/seaweedfs/issues/2396
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
f0b928ff5e
go fmt
3 years ago
Chris Lu
3afa451cdc
volume: find a non-empty offset when binary searching by timestamp
3 years ago
Chris Lu
b530f12327
volume: find a non-empty offset when binary searching by timestamp
fix https://github.com/chrislusf/seaweedfs/issues/2364
3 years ago
Chris Lu
ce1efeb0eb
adds more error message
3 years ago
Chris Lu
d688e10ed1
do not try to compress if not sure about the file content
3 years ago
Chris Lu
332f5ad3a8
revert temporary changes that disabled compression
fix https://github.com/chrislusf/seaweedfs/issues/2362
3 years ago
Chris Lu
f0d1e7bd05
skip ec volumes when loading normal volumes
3 years ago
Chris Lu
f58ea6a2ee
add source name to error message
3 years ago
Chris Lu
2e9372dcf7
volume stream read skips deleted content
3 years ago
Chris Lu
5956a8b05a
adjust comment
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
8c6ff55226
add volume not found error type, to reduce error log
3 years ago
Chris Lu
1b942dfa3c
add error message
3 years ago
Chris Lu
7ce97b59d8
go fmt
3 years ago
Chris Lu
f811fd0903
fix build
3 years ago
Chris Lu
5adfdd7982
change to a new bloom filter library
3 years ago
Chris Lu
05a648bb96
refactor: separating out remote.proto
3 years ago
Chris Lu
c08ac536ed
cloud drive: add support for Wasabi
* disable md5, sha256 checking to avoid reading one chunk twice
* single threaded upload to avoid chunk swapping (to be enhanced later)
3 years ago
Chris Lu
00c4e06caa
cloud drive: s3 configurable force path style
3 years ago
Chris Lu
f0cc130849
do not force path style for better compatibility
3 years ago
Konstantin Lebedev
865b06b7fe
The IEEE assembler optimizations has been submitted and will be part of the Go 1.6 standard library.
https://github.com/klauspost/crc32
3 years ago
Chris Lu
78e8ddf910
Only when tailing volume, the zero-ed cookie should skip checking.
This only happens when checkCookie == false and fsync == false.
3 years ago
Chris Lu
a8617c1a39
tail volume: fix zero cookie problem from batch deletion
3 years ago
Chris Lu
734c980040
volume: support concurrent download data size limit
3 years ago
Chris Lu
9cc84a910f
volume: deletion can skip volume size checking
fix https://github.com/chrislusf/seaweedfs/issues/2225
3 years ago
Chris Lu
49c66e88a0
volume: change all writes to fsync during graceful stopping
fix https://github.com/chrislusf/seaweedfs/issues/2193
3 years ago
Chris Lu
b624090398
go fmt
4 years ago
Chris Lu
24e11d1e90
look back when adding to sorted values
look back when adding to sorted values, before adding it to overflow
4 years ago
Chris Lu
fc8dd58aea
volume: large_volume version has bug when using in memory index
fix https://github.com/chrislusf/seaweedfs/issues/2162
4 years ago
Chris Lu
56eb522b13
fix stats when a collection is deleted
4 years ago
Chris Lu
6c82326575
use bytes.Buffer to reduce memory allocation and gc
4 years ago