Commit Graph

41 Commits

Author SHA1 Message Date
clinx
4a38fa1418 fix(client): add audit log for cross region host #1000075110
Signed-off-by: clinx <chenlin1@oppo.com>
2025-08-08 14:52:12 +08:00
chihe
e32d901fb6 fix(flashnode): delete expired file for block cache before unlock
close:#23062373

Signed-off-by: chihe <chihe@oppo.com>
2025-08-07 16:00:28 +08:00
shuqiang-zheng
3cdea7d89f feat(flashnode): modify the upper limit of cachePercent and the defaultMaxUseRatio of lru.
close:#23080181

Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
2025-08-07 16:00:27 +08:00
zhumingze
f57815426a fix(util): change clean internal of audit log to 10s #22858505
Signed-off-by: zhumingze <zhumingze@oppo.com>
2024-12-26 09:24:22 +08:00
zhumingze
498260102c feat(util): set the default rotate size for audit logs to 1G #22858505
Signed-off-by: zhumingze <zhumingze@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
edcad2d620 refactor(lcnode): rename variable name writeGen to leaseExpire. #22855673
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
zhumingze
306132d83d fix(util): modify clean logic of audit log and add test case #22858505
Signed-off-by: zhumingze <zhumingze@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
a69ba6978f fix(meta): fix unmarshal append inode bug. #22764528
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
6e06157948 feat(metalcnode): meta API OpMetaUpdateExtentKeyAfterMigration replies err details to lcNode
lcNode will print it to audit log
	#22327519
	#22385058
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
zhaochenyang
0fe9b02796 fix(lcnode): hybrid cloud optimize lcnode auditlog #22295845
Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
2024-12-26 09:24:22 +08:00
zhaochenyang
ed9545c7a7 feat(lcnode): hybrid cloud add lcnode auditlog (#22067931)
Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
94dcb991db feat(metanode): hybrid cloud add audit log for migration
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +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
NaturalSelect
605371c336 fix(util): refactor audit log remove
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-22 17:10:59 +08:00
Victor1319
4df91ebc6e refactor(all): reslove merge conflicts between 3.3.x and 3.4.0.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
fadcba2fce test(util): fix unit test
@formatter:off

Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
Victor1319
c2e6e7aaab test(data): fix bad testcase for data, meta, master.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
f7f012de3d feat(meta): audit log print millisecond
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
leonrayang
c29084e440 enhance(client): Log path check too strict to startup if have softlink in the path
Signed-off-by: leonrayang <chl696@sina.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
9e0a1d9484 refactor(util): remove lock from auditlog
Signed-off-by: NaturalSelect <2145973003@qq.com>
2024-07-18 16:57:38 +08:00
baihailong
f43822f661 fix(auditlog): fix multithread logAudit bug
Signed-off-by: baihailong <baihailong@oppo.com>
2024-07-18 16:57:38 +08:00
baihailong
00fdbe3dbc fix(util): fix audit log bug, not handle shiftFiles() returned error 2024-07-18 16:57:38 +08:00
NaturalSelect
bcd5ff6740 fix(util): avoid lock in audit log
Signed-off-by: NaturalSelect <2145973003@qq.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
556a452ebf fix(util): audit log performance
Signed-off-by: NaturalSelect <2145973003@qq.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
fa23e44ad8 feat(metanode): merge GetDataPartitionsView RPCs and GetVolumeSimpleInfo RPCs in a volume into one RPC
close: #1908

Signed-off-by: NaturalSelect <2145973003@qq.com>
2024-07-18 16:57:38 +08:00
chihe
af7ae48674 feat(master): enhace audit log for master
Signed-off-by: chihe <chihe@oppo.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
e58b1b005e refactor(master): change audit log format
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-18 16:57:38 +08:00
NaturalSelect
81f99aab29 feat(master): support master decomm audit log
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-07-05 17:05:43 +08:00
NaturalSelect
ebb1d14942 fix(util): recycle audit logs when rolling
close: #3178
Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-03-06 17:21:28 +08:00
slasher
1d84f74acd chore(format): format all code with gofumpt
Signed-off-by: slasher <shenjie1@oppo.com>
2024-01-12 14:21:16 +08:00
NaturalSelect
a9be889c3f chore(snapshot): for compatibility, set full path parameter to "unsupported"
Signed-off-by: NaturalSelect <2145973003@qq.com>
2023-10-18 14:51:09 +08:00
NaturalSelect
804fd4780d fix(util): fix audit log
Signed-off-by: NaturalSelect <2145973003@qq.com>
2023-10-18 14:51:09 +08:00
baijiaruo
5136f4d263 fix(codeql): fix codeql code-scanning 113
Signed-off-by: baijiaruo <baijiaruo@126.com>
2023-08-08 15:01:55 +08:00
leonrayang
1073a2514d Log: Dir of log(normal|statistic|audit) be grant as 755 for other user access
Signed-off-by: leonrayang <chl696@sina.com>
2023-07-20 10:58:50 +08:00
slasher
25c669644e chore(code): code static check package util
Signed-off-by: slasher <shenjie1@oppo.com>
2023-06-14 19:27:09 +08:00
yuxiaobo
ac75137295 build: the build script of blobstore is merged into cubefs
1. rocksdb upgrade to 6.3.6
2. optimize the build scripts
3. fix build errors
4. add env variable for blobstore unit test
5. update git ignore file to ignore build and test result
6. modify open files limit for unit test

Signed-off-by: yuxiaobo <yuxiaobo@oppo.com>
Signed-off-by: slasher <shenjie1@oppo.com>
Signed-off-by: Victor1319 <834863182@qq.com>
2023-05-23 15:24:53 +08:00
Patrick Wu
7632e3f050 fix: tx timeout may fail when time are not synchronized among metanodes
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-05-18 10:48:57 +08:00
Patrick Wu
595b016017 fix: audit log prefix info will get lost when re-enabled after disabled
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-16 19:43:27 +08:00
Patrick Wu
5a057f10d0 enhance: add time zone info in audit log
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-04 16:13:35 +08:00
Patrick Wu
490b051d6a audit log supports custom prefix, master add request info log
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-04 16:13:35 +08:00
Patrick Wu
de36b418cf audit log
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-04 16:13:35 +08:00