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

Torrent Checker refactoring #7286

Merged
merged 41 commits into from
Feb 20, 2023
Merged

Torrent Checker refactoring #7286

merged 41 commits into from
Feb 20, 2023

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jan 25, 2023

This PR related to #6131, fixes #7287

Changes:

  • logging has been extended
  • fixed types inconsistency
  • fixed run_tribler_headless.py (it was run without components)
  • fixed check_random_tracker (the result of checks were never saved in DB)
  • app_mode added to logging
  • fixed FakeDHTSession logic inconsistency
  • fixed recheck torrent health logic (@kozlovsky)
  • a tooltip was added to show the freshness of the seeders/leechers info (@kozlovsky)

@hbiyik
Copy link

hbiyik commented Jan 27, 2023

Thanks for this, as someone who has spent some time in this part of code, i had seen lots of issues there. Not cosmetic-wise but flow-wise as well. Sorry can't provide an actual feedback it has been a long while, but i appreciate the bravery. I hope it can motive :)

@drew2a
Copy link
Contributor Author

drew2a commented Jan 28, 2023

@hbiyik thank you for your support! It's quite motivating!

@drew2a drew2a force-pushed the fix/6131 branch 8 times, most recently from 52e5640 to adb9d33 Compare February 1, 2023 11:23
@drew2a drew2a force-pushed the fix/6131 branch 2 times, most recently from 4c6c3a7 to 41b4634 Compare February 1, 2023 12:42
@drew2a drew2a marked this pull request as ready for review February 3, 2023 17:02
@drew2a drew2a requested review from a team and kozlovsky and removed request for a team February 3, 2023 17:02
…ke it clear that it is not always updates DB
…orrents are not loaded from the DB if a new health info was added to TorrentChecker._torrents_checked)
…rror to avoid returning None instead of TrackerResponse
… the future") from the DB.

Such torrents can appear if a torrent health was self-checked on the local machine and then
updated with incorrect info from the remote machine without updating the self_checked flag.
@kozlovsky kozlovsky self-requested a review February 20, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[main] Recheck torrent health is broken
3 participants