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

Supports to sync historical files without NewFile gossip message #269

Merged
merged 6 commits into from
Nov 15, 2024

Conversation

boqiu
Copy link
Contributor

@boqiu boqiu commented Nov 14, 2024

Problem

When node sync files only from neighbors, it will miss some NewFile gossip messages during downtime. As a result, these files will not be synced anymore.

Solution

Besides the current file sync based on neighbors notifications, launch another aysnc worker to sync all files, regardless of NewFile message received or not. If file unavailable on neighbor nodes, it will be timeout to find peers.


This change is Reviewable

Copy link
Contributor

@peilun-conflux peilun-conflux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @0g-peterzhb)

@boqiu boqiu merged commit e912522 into main Nov 15, 2024
7 checks passed
@boqiu boqiu deleted the random-sync-historical branch November 15, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants