happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

添加 tracker 节点,逐次重启 storage 节点之后异常,导致无法上传小文件 #672

Open VinnyWan opened 8 months ago

VinnyWan commented 8 months ago

你好, 我在重新添加 tracker 节点时, 重启storage 节点之后遇到如下重新选举的报错。后导致小文件不能上传, 导致最下面的日志报错,麻烦能看下如何修复,谢谢

version 5.0.8

架构 2 tracker,扩容为 3 个 2 group 中各 2 个节点

image

[2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205494, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=100, id=6734, offset=27256218, size=120120, status=0 [2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205500, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=100, id=6664, offset=67056553, size=50856, status=0 [2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205503, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=100, id=6724, offset=11213284, size=112200, status=0 [2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205517, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=87, id=5562, offset=11155946, size=61224, status=0 [2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205524, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=100, id=6696, offset=17856539, size=66480, status=0 [2023-10-30 21:16:39] WARNING - file: trunk_mgr/trunk_mem.c, line: 808, trunk data line: 46205531, trunk space already exist, trunk info: store_path_index=0, sub_path_high=0, sub_path_low=100, id=6723, offset=8553888, size=114504, status=0

happyfish100 commented 8 months ago

版本太旧了,升级到最新的 6.9.5吧

VinnyWan commented 8 months ago

因为里面修改过传文件的路径, 没有办法直接升级,只能修复,升级的话代价太高了,能否指点下修复的方法, 我们在升级也 OK 的。如果我们升级的话,升级文档有吗?