Commit Graph

146 Commits

Author SHA1 Message Date
Victor1319
6283610ad4 fix(meta): fix meta panic when log extent info. #1000286609
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
(cherry picked from commit aae1646931)
2025-12-24 17:01:07 +08:00
Victor1319
3b09c5205d fix(meta): getExtents func not update inode self. #1000152321
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:31 +08:00
leonrayang
0b58792d6d fix(metanode): Remove the logic of real-time calculation of the incremental data of the UID.
.  #1000112797

Signed-off-by: leonrayang <chl696@sina.com>
2025-08-08 14:59:29 +08:00
Victor1319
5ea1d37f21 refactor(meta): refactor inode and dentry muti version code. #1000114612
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:29 +08:00
Victor1319
72dc99de1f refactor(meta): refactor code and testcases. #1000114612
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:29 +08:00
Victor1319
388b1cb7cf refactor(meta): add bench testcase for inode marshal. #1000114612
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:29 +08:00
Victor1319
6f209ae5e9 feat(meta): Optimize the memory alignment of inode and dentry fields. #1000114802
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:28 +08:00
Victor1319
3ad0f3d01f feat(meta): use buf pool to refactor inode marshal func. #1000094350
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:28 +08:00
Victor1319
62b28d0626 refactor(fmt): use gofumpt to format code. #1000063488
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:27 +08:00
Victor1319
c3ccdfc7e2 refactor(sdk): remove dp cache code from sdk, client, cli. #1000063488
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:27 +08:00
Victor1319
d66cd51bec refactor(meta): remove dp cache code from metanode. #1000063486
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-08 14:59:27 +08:00
clinx
8fbab026ff fix(meta): adjust concurrent conflict errors to warnings #1000028960
Signed-off-by: clinx <chenlin1@oppo.com>
2025-08-08 14:52:02 +08:00
Victor1319
eae24a92f9 fix(meta): check whether sortEks empty when fsmUpdateExtentKeyAfterMigration. #23126054
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2025-08-07 16:00:29 +08:00
Victor1319
ba48924d95 refactor(master): remove useless code. #22890822
eliminate security vulnerabilities in the code.

Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
1b15a549bc fix(meta): update storage class as blobstore when file empty. #22883730
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
c9685d9713 fix(meta): execute sync func only when error is nil. #22883730
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
684ca7787f fix(meta): use local reserved variable to replace var in inode. #22883730
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
leonrayang
645076645a feat(metanode): optimize the extend memory allocate process in storeExtend, marshal and unmarshal
close:#22788628

Signed-off-by: leonrayang <chl696@sina.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
Victor1319
0b81daa151 refactor(meta): refactor client lease logic. #22855673
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
leonrayang
498f7ecbbc feat(metanode): disable the process related to snapshots if snapshots are switched off
close:#22404072

Signed-off-by: leonrayang <chl696@sina.com>
2024-12-26 09:24:22 +08:00
Victor1319
e3abe5fc97 fix(master): update bcache report info. #22845037
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
3c4c7ea65b refactor(meta): refactor variable name. #22785311
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
e922b4336c refactor(meta): reduce cpu cost for mp delete worker. #22785311
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
44d1d95161 fix(meta): fix some issue about compatiable. #22780321
1. remove useless code.
2. fix compatiable bug abount dataMediatType.

Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
a32476c9c5 fix(meta): fix unmarshal append inode bug. #22764528
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
623a671184 fix(meta): empty file not check storage class. #22735527
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
692fa3e567 fix(meta): only file check storage class when unmarshal inode. #22735527
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
c6f2c51277 fix(metanode): recover panic when marshal inode failed. #22720099
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
Victor1319
97af707e01 refactor(meta): support compatible with v3.4.0. #22711062
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
658b89a4d5 fix(meta): increase the timeout when fetch info from master in register and mp start procedure
close:#22677404
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
9f7ffeb194 feat(masterdatameta): support volume to forbidden write operate codes of lower packet protocol version
close#22531837

Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
ade3d22670 refactor(meta): hybrid cloud add storageClass validation check when inode.storageClass changes
##22542807
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
8c7acf9714 refactor(sdk): updateExtentKeyAfterMigration print only warn log if inode's lease is occupied
close:#22543543
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
037df5f5f9 fix(sdkclient): client compatible with older version server modules
#22400600
	@formatter:off
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
f9d8d69a29 fix(meta): after deletion migrate extents of an inode
push it back info free list if it is marked delete.
	#22313098
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
bfc9130b8e fix(master): hybrid cloud when zoneName in datanode's conf file changed, make adjustments of topology.
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
NaturalSelect
3b9ef65dbe chore(all): format code
@formatter:off

Signed-off-by: NaturalSelect <huangzhibin1@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
0c57fa34a9 fix(client): if volume is cold and no datapartition, not print log in updateDataPartition
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
309d89f1a3 fix(meta): hybrid cloud check err when invoking (*Inode).UnmarshalInodeValue
close:#22112817
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
e62a84fb95 fix(metanode): hybrid cloud when ek is nil but mek is not nil, no replacement occurs.
close:#22037699

Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
b701abdf6a fix(meta): if inode is dir, not allowed to set migrate extents in UpdateExtentKeyAfterMigration
close:#22076233
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
5c911b1cc0 fix(meta): hybrid cloud to correctly determine whether the inode should be deleted when unlink
close:#22037078
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
d7730f56ae fix(meta): hybrid cloud in function MarshalInodeValue, write length 0 to buff if migrate sortedEks is nil
close:#22031037
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
d823d1f616 fix(meta): hybrid cloud set migrate storageClass in function fsmInternalDeleteMigrationExtentKey
close:#22029476
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
true1064
a010a7b39d feat(fsck): hybrid cloud support scanning migrate-extent garbage
Signed-off-by: true1064 <true1063@163.com>
2024-12-26 09:24:22 +08:00
chihe
334200af1c feat(metanode): hybrid cloud inode marshall support empty file
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
ddfceda455 fix(metanode): hybrid cloud modify the logic of checking deferred deletion of migration extent key
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
de7d0693b5 fix(metanode): hybrid cloud notify follower to delete migration ek if update migration ek failed
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00
chihe
21d4c73847 feat(metanode): hybrid cloud Support for deleting discard migration data
Signed-off-by: chihe <chihe@oppo.com>
2024-12-26 09:24:22 +08:00