Commit Graph

30 Commits

Author SHA1 Message Date
slasher
5d5e45cb0a chore(util): store current time to atomic value
BenchmarkGetCurrentTime-4    100000000    11.60 ns/op            0 B/op          0 allocs/op
-->
BenchmarkGetCurrentTime-4    895091701     1.31 ns/op            0 B/op          0 allocs/op

Signed-off-by: slasher <mcq.sejust@gmail.com>
2024-01-31 19:13:25 +08:00
slasher
9b1f6270ae chore(cli): catch errors on root of cmd
Signed-off-by: slasher <shenjie1@oppo.com>
2024-01-04 17:37:31 +08:00
chihe
b5de4b97b2 fix(master): panic when concurrent read/write decommissiondatapartition list
Signed-off-by: chihe <chi.he@oppo.com>
(cherry picked from commit 3f20228d8edd8be9809d69e3a0cae7a75bea8703)
2023-10-31 14:22:38 +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
setcy
c43dcb4962 feat(cli): support listing nodeSets and displaying space capacity with cli
Signed-off-by: setcy <2670061551@qq.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
setcy
d991494ab8 feat(cli): give suggestions when root command not found
Signed-off-by: setcy <2670061551@qq.com>
2023-06-09 09:08:32 +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
chihe
dffdf2f94c enchance(cli): add bad disk check
Signed-off-by: chihe <chi.he@oppo.com>
2023-05-26 11:17:10 +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
7b7e6587b9 feature(master.meta.client) support uid space manager
Signed-off-by: leonrayang <chl696@sina.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
leonrayang
9a30b9f884 update: update to CubeFS
Signed-off-by: leonrayang <chl696@sina.com>
2022-08-22 18:16:09 +08:00
chihe
49e62e794d bugfix: fix some cli tools bugs
Signed-off-by: chihe <chi.he@oppo.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
Justice
72f035645e feature: add gencfg command for cli to generate cluster config by yaml
Signed-off-by: Justice <zhengyi.zhu.hust@gmail.com>
2021-07-12 11:13:39 +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
awzhgw
e697d0ac68
Merge pull request #764 from ssscottt/capacity
add expand/shrink capacity interfaces; introduce log to cli tool
2020-07-17 10:48:42 +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
Mofei Zhang
c458dd6409
Enhancement: unified version information
When using the build script to compile the program, it automatically
uses the latest git tag as the program version number information.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-07-16 18:34:15 +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
zhuhyc
55e667b147 feature: provide data consistency verification tool for meta partition
Signed-off-by: zhuhyc <zzhniy.163.niy@163.com>
2020-06-22 15:25:23 +08:00
xuxihao
a8b4075791 enhancement of cli: implement several interfaces; support bash completion; set config file by interactive command line
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-05-12 22:58:08 +08:00
Mofei Zhang
76bc8667af
Refactor: using cli instead of curl in CI scripts
Refactor: using cli instead of curl in CI scripts
Add: CLI command for CLI for adding more data partition to volume
Enhancement: optimize CLI output format

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-21 16:32:32 +08:00
Mofei Zhang
69f9018293
Add: CLI tool to improve cluster management
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-15 17:30:23 +08:00