Commit Graph

72 Commits

Author SHA1 Message Date
shuqiang-zheng
052bc84df8 fix(master): fix dp restore failure due to datanode not found.
close:#1000155538

Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-11 17:21:17 +08:00
shuqiang-zheng
fdf97e54ad fix(master): fix new replica repair blocking due to host0 unavailability during dp decommission.
close:#1000059565

Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-08 14:59:28 +08:00
chihe
82a11e620c fix(client): ignore limit and context timeout error
close:#1000014246i,#1000017781

Signed-off-by: chihe <chihe@oppo.com>
2025-08-08 14:51:45 +08:00
wu huocheng
6372209d12 fix(master): skip the meta partition that is recover or has no leader.#22834621
Signed-off-by: Wu Huocheng <wuhuocheng@oppo.com>
2025-08-07 16:00:27 +08:00
slasher
c4aaa43205 feat(flashnode): add flash node service in master
. #22200531 #22115371 #22200563

Signed-off-by: slasher <mcq.sejust@gmail.com>
2025-08-07 15:18:53 +08:00
slasher
b150a10a36 feat(flashnode): add service of flashnode
. #22115361 #22200518 of #21957840

Signed-off-by: slasher <mcq.sejust@gmail.com>
2025-08-07 15:18:46 +08:00
Victor1319
fba5a5d6f3 refactor(master): check vol forbidden write type when add vol storage class. #22814514
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
abc2ab5912 refactor(master): support double check master media cfg type. #22727537
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
716aa7970a feat(masterdata): datanode quit starting if master returns mediaType not match when register
close:#22727852
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
53d939fad6 fix(datameta): use default value if master not support the API AdminGetVolListForbidWriteOpOfProtoVer0.
close:#22644059
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
zhaochenyang
4c73097a3d refactor(lcnode): hybrid cloud lifecycle transition
1. close extent client
2. use StorageClass_Replica_HDD and StorageClass_BlobStore
3. scanner init AllowedStorageClass
4. enhance lifecycle parameter check
5. add extent client for write

Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
1888c9b8a8 fix(raft): if the previous member change did not return, reject the submission of the next member change
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
leonrayang
ed7fc8d2af feat(master): add the switch for function of volume snapshot management
Signed-off-by: leonrayang <chl696@sina.com>
2024-12-26 09:24:22 +08:00
baihailong
e07aeac619 fix(fuse): if vol name not match regexp when mount, return failed immediately.
Signed-off-by: baihailong <baihailong@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
43d8903d10 fix(master): skip auto add replica when dp lost leader
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
shuqiang-zheng
dd741df686 fix(security): slice memory allocation with excessive size value.
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2024-08-12 09:56:14 +08:00
NaturalSelect
6b53973075 fix(master): assess replica[0] need dp lock
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
4acdeca1fd feat(master): return can alloc partition when query node info
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
chihe
cafd844e8a feat(master): excute checkReplicaMeta when mark dp decommission
Signed-off-by: chihe <chihe@oppo.com>
2024-07-18 16:57:38 +08:00
chihe
0cf259b89f feat(master): auto add missing repplica
Signed-off-by: chihe <chihe@oppo.com>
2024-07-18 16:57:38 +08:00
chihe
7a6febec4b feat(cli): add decommissioned disks info for datanode node info display
Signed-off-by: chihe <chihe@oppo.com>
2024-07-05 17:05:43 +08:00
chihe
d303bc8d3b fix(master): validate the existence of the disk and node when performing disk decommission
Signed-off-by: chihe <chihe@oppo.com>
2024-07-05 17:05:43 +08:00
chihe
3ecdbe0af0 feat(master): enhance for auto decommission
Signed-off-by: chihe <chihe@oppo.com>
2024-07-05 17:05:43 +08:00
morphes1995
b8c26ba20f feat(cli): cfs-cli add functionality to show disk info
Signed-off-by: morphes1995 <morphes1995@gmail.com>
2024-04-19 14:06:35 +08:00
shuqiang-zheng
42fa6628f4 enhance(cli): Modifying Volume Deletion Related Error Messages.
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2024-03-28 11:43:55 +08:00
shuqiang-zheng
6d0de0df25 fix(master): Fixed the problem that delayed deleted volumes do not support migration.
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2024-03-28 11:43:55 +08:00
shuqiang-zheng
9c5185e9be feat(master): Freeze the volume when performing volume deletion.
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2024-03-28 11:43:55 +08:00
lily-lee
84dea94603 feat(master): compress client/partitions response data
Signed-off-by: lily-lee <lilylee88756@gmail.com>
2024-02-27 10:30:21 +08:00
setcy
c88468bbc0 feat(master): support listing nodesets and displaying space capacity
Signed-off-by: setcy <2670061551@qq.com>
2023-08-30 20:05:32 +08:00
chihe
f86074129a [feature] enhance decommission speed control: add manual and auto priority
Signed-off-by: chihe <chi.he@oppo.com>
2023-08-30 20:05:32 +08:00
Patrick Wu
29e3110a93 S3 lifecycle
Signed-off-by: Patrick Wu <wuchunhuan@gmail.com>
2023-08-30 20:05:32 +08:00
leonrayang
5ae500768b feature: support multi version snapshot
Signed-off-by: leonrayang <chl696@sina.com>
2023-08-30 20:05:32 +08:00
M1eyu2018
65ec21d1a6 [Enhancement] add authentication for master admin api
Signed-off-by: M1eyu2018 <857037797@qq.com>
2023-08-24 16:05:12 +08:00
baijiaruo
035cb168ad enhance: add directory quota feature
Signed-off-by: baijiaruo <huyao2@oppo.com>
2023-05-18 10:48:57 +08:00
leonrayang
b525c104a5 Feature: support ip addr acl check
Signed-off-by: leonrayang <chl696@sina.com>
2023-05-18 10:48:57 +08:00
M1eyu2018
d06ae730e3 [Enhancement] add check if vol has available space before create data partition
Signed-off-by: M1eyu2018 <857037797@qq.com>
2023-04-03 10:28:54 +08:00
chihe
7f3669acee [bugfix]1.fix dp rdonly can still write 2.dp decommission failed donot release token
Signed-off-by: chihe <chi.he@oppo.com>
2023-03-16 19:43:27 +08:00
chihe
b0ec09b30f [feature] dp decommission speed control
Signed-off-by: chihe <chi.he@oppo.com>
2023-03-04 16:13:35 +08:00
leonrayang
9a30b9f884 update: update to CubeFS
Signed-off-by: leonrayang <chl696@sina.com>
2022-08-22 18:16:09 +08:00
leonrayang
c1adba0775 fix: docker test run error
Signed-off-by: leonrayang <chl696@sina.com>
2022-04-13 15:57:55 +08:00
leonrayang
2970e2c3d1 update. go import path change from chubaofs to cubefs
Signed-off-by: leonrayang <chl696@sina.com>
2022-01-25 18:17:02 +08:00
Shuoran Liu
8d620f863c refactor: execute gofmt to the whole repo
This commit does nothing but execute gofmt to the whole repo using the
following command:

$ find . -type f -name "*.go" | grep -v 'vendor' | xargs gofmt -w

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2021-09-24 15:47:02 +08:00
leonrayang
9f8ac01416 Add feature domain for cross zone
Signed-off-by: leonrayang <chl696@sina.com>
2021-07-14 16:40:19 +08:00
ansjsun
f0c164523e add console node
Signed-off-by: ansjsun <ansj-sun@163.com>
2020-07-03 12:21:11 +08:00
wenjia322
f25565a207 enhancement: view users of vol through master api '/vol/users'
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-05-24 21:47:14 +08:00
Mofei Zhang
c89da19525
Fix: user name verification issues
The user name (ID) is verified when the user is created.
Do not verify user name parameters when viewing user information,
deleting users, modifying authorization, etc. for specific users.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-04-03 13:13:16 +08:00
wenjia322
4d2a20e5f9 feature: add master and cli api 'updateUser'
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-24 14:35:34 +08:00
Mofei Zhang
ddfd8b7c3f
Enhancement: improve error parsing for master APIs
Enhancement: improve error parsing for master APIs.
Fix: status code of DelteBucket ans DeleteObjects API.
Fix: url signature parsing of signature algorithm V2.
Add: s3tests framework for compatibility test.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-22 08:31:51 +08:00
Mofei Zhang
bf536f617c
Merge branch 'master' into object-store
Conflicts in following files have been resolved:
  master/cluster.go
  master/cluster_test.go
  master/const.go
  master/http_server.go
  master/metadata_fsm.go
  master/metadata_fsm_op.go
  master/vol.go
  master/vol_test.go
  proto/admin_proto.go
  proto/errors.go
  sdk/meta/meta.go

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-20 18:29:31 +08:00
zhuhyc
2e1476239b feature: add token
To improve security, the token mechanism handles the client's read and write permissions

Signed-off-by: zhuhyc <zzhniy.163.niy@163.com>
2020-03-20 12:18:04 +08:00