-
Notifications
You must be signed in to change notification settings - Fork 287
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: peer automatically injects existing task metadata to scheduler upon restart #3385
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3385 +/- ##
==========================================
- Coverage 52.11% 52.07% -0.04%
==========================================
Files 188 188
Lines 20242 20332 +90
==========================================
+ Hits 10549 10588 +39
- Misses 8894 8940 +46
- Partials 799 804 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
aea7f27
to
14cedf3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PeerCountLimitForTask
22715c2
to
52669a1
Compare
resolved |
f732a9e
to
75899b4
Compare
e3fd38b
to
2740521
Compare
855c7b6
to
045d59b
Compare
84ae6eb
to
93f67da
Compare
80517b3
to
1e78607
Compare
Signed-off-by: BruceAko <chongzhi@hust.edu.cn>
Description
Handle
AnnouncePeersRequest
, storePeer
into scheduler.Related Issue
Resolve #3387
Motivation and Context
Rust's dfdaemon stores the task's metadata in RocksDB at the beginning of the download. Add a new rpc interface: AnnounceTask() to the v2 scheduler. dfdaemon of Rust will fetch the metadata of downloaded tasks (including the metadata of tasks and pieces) from RocksDB at each startup, filter out all the completed tasks, call AnnounceTask() to the schedulerscheduler to add the metadata of Task and Peer to the Manager for subsequent scheduling.
Types of changes
Checklist
Test doc
https://www.yuque.com/baimo/fv9qk8/vw6mgd2aw0ksv0c8