guol-fnst
de6aa9cce8
avoid duplicated volume directory
3 years ago
chrislu
3e20336bde
fix atomic add int64
fix https://github.com/chrislusf/seaweedfs/issues/3038#issuecomment-1123269831
3 years ago
chrislu
76148ce0f7
use storage_class for backend configuration
fix https://github.com/chrislusf/seaweedfs/issues/3008
3 years ago
chrislu
1aae7a3f1b
volume.tier.upload progress starts negative #2992
fix https://github.com/chrislusf/seaweedfs/issues/2992
3 years ago
chrislu
192983b464
s3 backend support customizing storage class
3 years ago
chrislu
70e5a1b632
volume close should wait for committing compaction
3 years ago
chrislu
37ab8909b0
use two flags: v.isCompacting and v.isCommitCompacting
3 years ago
chrislu
94f824e1ce
volume: sync to disk before copying volume files
address https://github.com/chrislusf/seaweedfs/issues/2976
3 years ago
Konstantin Lebedev
7315d1d039
waite volume being closed during compression idx
3 years ago
chrislu
8e9ad7db5a
fix bug deleting volume or unmount volume if a volume server has multiple directories
3 years ago
Konstantin Lebedev
1e35b4929f
shell vacuum volume by collection and volume id
3 years ago
Konstantin Lebedev
9438738693
avoid invalid memory address or nil pointer dereference
3 years ago
justin
3551ca2fcf
enhancement: replace sort.Slice with slices.SortFunc to reduce reflection
3 years ago
justin
d51a724101
fix: encode small chunk return error maybe have some bug.
3 years ago
Konstantin Lebedev
f53cff045f
checks disk file exist
3 years ago
guosj
3e7aa1caf5
fix return value in storage/volume_vacuum.go:444
3 years ago
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