Skip to content

fix(torrent): log refusals of trackers Ketch adds at debug - #618

Merged
linroid merged 1 commit into
mainfrom
fix/torrent-extra-tracker-noise
Oct 23, 2026
Merged

linroid merged 1 commit into
mainfrom
fix/torrent-extra-tracker-noise

Conversation

@linroid

@linroid linroid commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Found while downloading public torrents (Debian, Arch, Internet Archive, Sintel) with the CLI. Every download printed warnings like these:

[WARN] [TorrentTracker] Tracker http://nyaa.tracker.wf:7777 warns about 9b521219bc48: info hash is not authorized with this tracker
[WARN] [TorrentTracker] Tracker https://tracker.qingwapt.org:443 warns about 9b521219bc48: Require passkey or authkey

These are trackers from the daily tracker lists that Ketch adds to every public torrent. Many of them only serve some torrents, so they refuse most hashes. The torrent never named them, and the user can't do anything about them, but the CLI shows WARN by default (as do the apps' logs).

What changes

TrackerTiers has a secondary constructor taking added. The engine passes added = true for the trackers it adds (TorrentConfig.additionalTrackers and tracker lists) in v1, v2/hybrid sessions and magnet lookups. Their refusals and warnings are logged at debug; the torrent's own trackers still warn. A secondary constructor keeps the primary (tiers, announce) signature, so the trailing-lambda and positional test call sites are unchanged.

Verification

  • ketch --list-files on the Arch Linux magnet from this branch: no WARN lines. Before: both warnings above.
  • New TrackerMessageTest.refusalsAndWarningsOfAddedTrackersAreNoWarnings: an added tracker's refusal and warning log nothing at warn, while the torrent's own tracker logs both.
  • ./gradlew :library:torrent:jvmTest passes.

Ketch adds the trackers of its daily tracker lists (and the user's extra
trackers) to every public torrent, and many of them serve only some
torrents: every download warned "info hash is not authorized with this
tracker" or "Require passkey or authkey" from trackers the torrent never
named, which the CLI prints by default. Refusals and warnings of added
trackers are now logged at debug; the torrent's own trackers still warn.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T15:00:56.243554Z 5e39439 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 2 194 files  ±0   2 222 suites  ±0   56m 18s ⏱️ - 1m 26s
15 260 tests +3  14 992 ✅ +3  268 💤 ±0  0 ❌ ±0 
18 613 runs  +5  18 345 ✅ +5  268 💤 ±0  0 ❌ ±0 

Results for commit 5e39439. ± Comparison against base commit 9fb402d.

@linroid
linroid merged commit a3b60ac into main Oct 23, 2026
15 checks passed
@linroid
linroid deleted the fix/torrent-extra-tracker-noise branch October 23, 2026 15:24
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.

1 participant