shuqiang-zheng
17b991b351
feat(master): add status update records to dp decommission process for querying.
...
close : #1000329528
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-12-24 17:01:10 +08:00
shuqiang-zheng
e39e185356
fix(master): show dp of missing tiny extent when cli performs data partition checking.
...
close:#1000059418
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-11 17:21:18 +08:00
shuqiang-zheng
175ee90983
feat(master): the dp decommission supports specifying the target nodeSet.
...
close:#1000211002
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-11 17:21:18 +08:00
zhumingze
111956c970
fix(cli): Fix cli datapartition check display issue. #1000171648
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-11 17:21:15 +08:00
zhumingze
db66d12cca
fix(cli): Display DP of different decommission types separately. #1000169635
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-11 17:21:14 +08:00
shuqiang-zheng
cbacf08980
fix(master): add decommission statistics related functionality to cli.
...
close:#1000104677
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-08 14:59:30 +08:00
zhumingze
314edb9bce
fix(cli): Do not display dp with empty disk err replica. #1000113950
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-08 14:59:28 +08:00
shuqiang-zheng
7e21ea26f0
feat(master): support for dp decommission prioritization.
...
close:#1000059507
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-08 14:59:28 +08:00
zhumingze
a18cf5072e
feat(cli): Badpartition check display modified to dp number. #1000101191
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-08 14:59:28 +08:00
zhumingze
ff102a00da
feat(cli): Add display of repair start time in datapartition check. #1000081755
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-08 14:59:27 +08:00
zhumingze
75af3848b0
feat(cli): Add parameters to datapartition check to simplify display. #1000068067
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-08 14:59:26 +08:00
zhumingze
47e9e94f1d
feat(cli): Cli tool data partition check optimization. #1000057001
...
Signed-off-by: zhumingze <zhumingze@oppo.com>
2025-08-08 14:59:26 +08:00
chihe
da33bc2068
feat(cli): support raftForce for datanode decommission by cfs-cli
...
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
2fb56e7282
feat(master): auto delete backup directories
...
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
47a7a6dfa4
feat(master):recover replica deleted by raftForce
...
Signed-off-by: chihe <chihe@oppo.com>
2024-07-22 17:10:59 +08:00
chihe
e287f3a9ce
fix(master): redundant replica not participate when decommissioning mutiple replicas of dp
...
Signed-off-by: chihe <chihe@oppo.com>
2024-07-22 17:10:59 +08:00
NaturalSelect
c19b690d1d
feat(master): support reset dp restore status
...
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
chihe
65ee50a40a
fix(cli): cli can display dps encountering IO errors during loading
...
Signed-off-by: chihe <chihe@oppo.com>
2024-07-05 17:05:43 +08:00
W9068822
470967aae4
feat(ci): fix format failed.
...
Signed-off-by: W9068822 <v-lijianrong1@oppo.com>
2024-07-05 17:05:43 +08:00
chihe
f704f3fdac
feat(cli): add report for disk error dp replica for cli
...
Signed-off-by: chihe <chihe@oppo.com>
2024-07-05 17:05:43 +08:00
NaturalSelect
7329d1f1e8
feat(master): check datapartition status when set dp discard
...
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-02 16:35:56 +08:00
NaturalSelect
9ca77ba7aa
feat(master): if dp is discard, decommission will success directly
...
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-02 16:35:56 +08:00
NaturalSelect
38bd1924e0
fix(cli): datapartition query-progress
...
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-02 16:35:56 +08:00
NaturalSelect
df58ccb9b4
feat(master): show error message when decommission dp fails
...
close : #21952214
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-03-27 14:24:50 +08:00
NaturalSelect
8bd2aac465
feat(cli): support discard dp
...
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-02-28 16:31:57 +08:00
chihe
ff2d5f6bd5
bugfix(datanode,cli):1.remove logic of fetching replica from master after adding raft member
...
2.cli show error msg when decommission failed 3.keep disk original decommission status when load
from rocksdb
Signed-off-by: chihe <chi.he@oppo.com>
(cherry picked from commit 846ac29e57e838cb728c1cd9495d4ecf0bd4c839)
2023-11-01 11:33:44 +08:00
slasher
74be4e4970
chore(cli): cli output with format
...
Signed-off-by: slasher <shenjie1@oppo.com>
2023-10-23 15:31:07 +08:00
slasher
7f406e5d0e
chore(cli): golangci lint apply into cli
...
Signed-off-by: slasher <shenjie1@oppo.com>
2023-10-23 15:31:07 +08:00
slasher
ff476f4d7d
chore(cli): gofumpt apply into cli
...
Signed-off-by: slasher <shenjie1@oppo.com>
2023-10-23 15:31:07 +08:00
NaturalSelect
fdfa176a97
fix(cli): fix fmt bug
...
Signed-off-by: NaturalSelect <2145973003@qq.com>
2023-10-16 15:57:54 +08:00
true1064
08c4672e95
enhance(master/cli): Reduce too much dp info printing about replica file count and size differ:
...
(1)master: not record replica file count and size differ if dp is in decommission
(2)cli: only print number of dp with replica file count and size differ in default; and add an argument to control whether print such dp info
Signed-off-by: true1064 <tangjingyu@oppo.com>
2023-08-30 20:05:32 +08:00
Patrick Wu
7e72ede897
feature: 1. support setting dp decommission control info. 2. add dp decommission progress for dp check cmd
...
Signed-off-by: Patrick Wu <wuchunhuan@oppo.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
true1064
d7e6dd2f2e
feat(master,cli): enhance discard data partition report:
...
1. add cmd "cfs-cli datapartition get-discard" to display all discard data partitions;
2. missing dp metrics not display discard data partitions;
Signed-off-by: true1064 <tangjingyu@oppo.com>
2023-06-16 17:42:02 +08:00
true1064
014629c40f
feat(cli):add an argument "--ignoreDiscard" to cmd "cfs-cli datapartition check", the datapartitions which is marked discard will not be displayed if this arg is set
...
Signed-off-by: true1064 <tangjingyu@oppo.com>
2023-06-16 17:42:02 +08:00
setcy
b75a644040
feat(cli): add newline in errouts
...
Signed-off-by: setcy <2670061551@qq.com>
2023-06-09 09:08:32 +08:00
true1064
82a10e751c
enhance: 'cfs-cli datapartition check' adds display of datapartitions with excessive replica num
...
Signed-off-by: true1064 <tangjingyu@oppo.com>
2023-05-18 10:48:57 +08:00
true1064
b8f5e362d2
enhance: 'cfs-cli datapartition check' added to show datapartitions whose replica's used size and file count differ significantly
...
Signed-off-by: true1064 <tangjingyu@oppo.com>
2023-05-18 10:48:57 +08:00
chihe
13069ccf67
[enhance]1.cli support raftForce 2.metanode add log to check leader change
...
Signed-off-by: chihe <chi.he@oppo.com>
2023-05-18 10:48:57 +08:00
true1064
d35020b554
enhance: add display of unavailable replica for cfs-cli datapartition check
...
Signed-off-by: true1064 <tangjingyu@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
lixiang12407
ff4dd03b03
enhance: add cfs-cli request parameters
...
Signed-off-by: lixiang12407 <960754123@qq.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
awzhgw
cf7fbde1f5
Revert "Sync from release-20200720"
2020-11-11 14:23:59 +08:00
awzhgw
b230b7107d
Sync changes from release-20200720 branch.
...
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-11-09 16:03:42 +08:00
xuxihao1
428b5d1018
Enhancement: set/get delete rate parameters, display zone information and bad partition ids in cli tools.
...
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-30 11:13:28 +08:00
xuxihao1
f3cfd46577
enhancement: introduce log to cli tool and format error message
...
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-16 20:10:51 +08:00
xuxihao
7343e33427
enhancement: Add several api such as decommission, freeze cluster and set threshold, add/delete partition replica to CLI tool
...
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-06-28 18:31:39 +08:00
xuxihao
10c957b810
Fix: the maxInodeID of a metapartition is not sync to others when recovered from snapshot; docker build failing when running build_docker.sh; spelling mistakes in cli
...
Refactor: upgrade base image from `cfs-base:1.0` to `cfs-base:1.1` in dockerfile
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-05-20 18:20:03 +08:00