Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Snapshot file to interrupt concurrent transmission(#503) #632

Closed
wants to merge 1 commit into from

Conversation

lilei0527
Copy link

@lilei0527 lilei0527 commented Jul 4, 2021

Motivation:

快照在网络传输过程中可能由于各种原因导致传输中断的问题,此改动增加了大文件并行传输和断点续传的功能

Modification:

设计思路:

1.首先leader在InstallSnapshot流程中的loadMetaTable的时候计算快照文件的分片数目,将快照文件的分片数据放入LocalFileMeta

传输给follower。

2.follower获取到LocalFileMeta,取其中的文件名,然后查看本机是否有已接收的快照分片段,将各个快照分片段的文件大小并行

传输给leader。

3.leader接收到follower的GetFileRequest,从指定的文件断点位置传输数据。

4.所有的快照分片传输完毕,将分片合并,合并完成后删除掉分片文件。

Result:

Fixes #503

@sofastack-bot
Copy link

sofastack-bot bot commented Jul 4, 2021

Hi @lilei0527, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

@lilei0527
Copy link
Author

@killme2008 大佬,看看我的PR

@killme2008
Copy link
Contributor

@lilei0527 ok,我看下

@fengjiachun
Copy link
Contributor

这个是否重复开发了? 这个任务已经被其他人认领过了, #596

@lilei0527
Copy link
Author

这个是否重复开发了? 这个任务已经被其他人认领过了, #596

不好意思,我看之前这个issue迟迟没有动静,所以自己也尝试了一下。

@killme2008
Copy link
Contributor

感谢贡献,因为有一个重复 PR 并且进行了 review,因此这个关闭了。

@killme2008 killme2008 closed this Mar 1, 2022
@lilei0527
Copy link
Author

@killme2008 之前你们review的那个pr怎么没有下文了,是否可以看看我的pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snapshot 安装实现断点续传机制
3 participants