sniff: keep only complete pieces in the probe completion #30
No reviewers
Labels
No labels
accessibility
bug
dependencies
documentation
duplicate
enhancement
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/sniffarr!30
Loading…
Reference in a new issue
No description provided.
Delete branch "probe-complete-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A new probe torrent has no completion, so anacrolix/torrent queued an initial check of every piece; each failed on the missing file and wrote "incomplete" in its own bolt transaction, and dropSeed deleted them all again. That was a fifth of a probe node's CPU (
MarkNotComplete21% in a 30 s profile of sniffarr-probe-0), with the bolt freelist growing. An absent record now means known incomplete.BenchmarkProbeCompletion, one probe of 8192 pieces, 16 downloaded, on bolt: 473 ms → 12 ms.Not covered by a test: pieces surviving a restart of a seeded torrent.
🤖 Generated with Claude Code
49aa1d80565e9304e2f8