chrislu
c1bb76d709
fix nil error
1 year ago
chrislu
ac50d8a822
re-lock if the lock owner is not found
1 year ago
Benoît Knecht
56287bd07d
weed/shell: Cluster check other disk types ( #5245 )
* week/shell: Cluster check other disk types
The `cluster.check` command only took the empty (`""`) and `hdd` disk types
into consideration, but a cluster with only `ssd` or `nvme` disk types would be
equally valid.
This commit simply checks that _any_ disk type is defined, and that some
volumes are available for it.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
* weed/shell: Replace loop that copies slice
Use the following construct instead of a `for` loop:
```golang
x = append(x, y...)
```
See https://staticcheck.dev/docs/checks#S1011 .
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
* weed/shell: Check disk types when filer is in use
Filer stores its metadata logs in generic (i.e. `""`) or HDD disk type volumes,
so make sure those disk types exist and have volumes associated with them when
Filer is deployed in the cluster.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
---------
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
1 year ago
Sébastien
0775d05a23
fix: http range request return status 500 ( #5251 )
When volume server unavailable for at least one chunk; was returning status 206.
Split `StreamContent` in two parts,
- first prepare, to get chunk info and return stream function
- then write chunk, with that stream function
That allow to catch error in first step before setting response status code in `processRangeRequest`
1 year ago
chrislu
0b2e5ddc7c
wait 3 seconds before shutting down publish client, to wait for all messages to be received
1 year ago
chrislu
545d5fbdf6
unused code
1 year ago
chrislu
a507069d19
lock for creating local partition
1 year ago
chrislu
9e6ea80dff
read existing topic conf
1 year ago
chrislu
a297247137
wait for each publish clients
1 year ago
chrislu
b6c5e57c30
read will block if no items
1 year ago
chrislu
0bf5424a2e
adjust visibility
1 year ago
chrislu
dedfd31dfb
refactor
1 year ago
chrislu
cbf750a31f
refactor
1 year ago
chrislu
b51dfe2bff
wait for publishing clients
1 year ago
chrislu
f8c55f101e
clean up
1 year ago
chrislu
d40225ecd2
return the lookup results
1 year ago
changlin.shi
503ae6ad64
fix: 当缺少content-type头和文件后缀时自动检测mime type
Signed-off-by: changlin.shi <changlin.shi@ly.com>
1 year ago
chrislu
841fafd0a8
publish to input buffer
currently, the input buffer may not exist when start to publish
1 year ago
chrislu
5dc1362bdc
close the input
1 year ago
chrislu
fa835c9319
Update buffered_queue_test.go
1 year ago
Chris Lu
b6de35cdb2
moved. there are some deadlock. WIP
1 year ago
chrislu
91af1f3069
schedule jobs
1 year ago
Benoît Knecht
f6e39139d8
weed/storage: Fix volume info file permissions ( #5246 )
1 year ago
changlin.shi
42fdce102d
fix: 修复默认添加content-type为application/octet-stream导致浏览器无法预览的问题
Signed-off-by: changlin.shi <changlin.shi@ly.com>
1 year ago
changlin.shi
4b144c1940
fix: 修复 stream signed 鉴权场景缺失acl account id 注入bug
Signed-off-by: changlin.shi <changlin.shi@ly.com>
1 year ago
chrislu
08c5fba825
adds a buffered queue
1 year ago
chrislu
cb50b720fd
Revert "Fix weed fix"
This reverts commit 6c1ce18541
.
1 year ago
Benoît Knecht
1f08010ef0
weed/shell: Cleanup volume balance logic ( #5241 )
1 year ago
Konstantin Lebedev
0f8e76bbd6
fix: clean metric MasterReplicaPlacementMismatch for unregister volume ( #5239 )
1 year ago
Benoît Knecht
a6aee847b9
weed/shell: Fix volume.balance logic ( #5238 )
1 year ago
Konstantin Lebedev
0b71fae2e3
fix: s3tests test_get_object_ifnonematch_good ( #5237 )
1 year ago
chrislu
025f8eb37b
return dir assign counter
fix https://github.com/seaweedfs/seaweedfs/issues/5231
1 year ago
chrislu
d4e66cc140
return dir assign counter
fix https://github.com/seaweedfs/seaweedfs/issues/5231
1 year ago
chrislu
49fcb48e04
same logic as grpc assign
fix https://github.com/seaweedfs/seaweedfs/issues/5213
1 year ago
chrislu
d268fbe18a
when configure, cancel existing assignments
1 year ago
chrislu
3ff6b31d94
sub broker wait for partition
1 year ago
chrislu
2beaa2d0b3
pub/sub brokers check filer for assigned partitions
1 year ago
chrislu
c3f8530f97
refactor
1 year ago
chrislu
5f35857cd0
no need to assign partitions explicitly
1 year ago
chrislu
428fea45f3
updated and added assignments
1 year ago
chrislu
e8b05ecc91
add/remove assigned partitions
1 year ago
chrislu
861ad732ca
refactor
1 year ago
chrislu
47924afa1c
refactor
1 year ago
changlin.shi
9736534a57
volume.fix.replication 增加 replicaPlacement 参数
Signed-off-by: changlin.shi <changlin.shi@ly.com>
1 year ago
changlin.shi
e0947cec67
refresh max volume count after adjust
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
LHHDZ
7f8ab63b7d
fix key corrupt when fs.configure copy path trie ( #4353 )
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
chrislu
581cf6644c
lookup reads from filer instead of local memory
1 year ago
chrislu
7121ae9617
separate out read topic conf and ensure topic active assignments
1 year ago
chrislu
c77d35313e
pub/sub broker only check local assigned partitions
1 year ago
chrislu
b0a2e9aea3
fix assignments if brokers changed
1 year ago