Skip to content

Await private peer cleanup before tracker failover - #213

Closed
linroid wants to merge 1 commit into
torrent-v2-11-tracker-reannouncefrom
torrent-v2-11-private-failover
Closed

linroid wants to merge 1 commit into
torrent-v2-11-tracker-reannouncefrom
torrent-v2-11-private-failover

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Private tracker failover previously announced to a replacement before awaiting old-peer cleanup. Move the callback into serialized tracker tier selection so it completes before any replacement announce. Cleanup failure or cancellation stops failover; successful cleanup is reused across failed candidates until an announce succeeds.

Stacked on #212; advances #162. Two regressions fail before this fix: a held cleanup must prevent replacement contact, and failed cleanup must not contact the replacement. Another test verifies that multiple failed candidates close the old peer set only once. Existing private preference, tracker ID isolation, and lifecycle behavior remain covered.

This fixes tracker exchange ordering for v1 and v2 discovery. The session callback still owns peer/queued-endpoint cleanup; comprehensive concurrent incoming admission and public v2 policy integration remain separate work.

Validation: 533 JVM and 512 executed iOS simulator tests, zero failures/errors/skips; native-runtime guard and both pinned v1 conformance scenarios passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 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-09-12T21:12:22.028748Z 1d108cb 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

  712 files  ± 0    712 suites  ±0   4m 23s ⏱️ -6s
2 978 tests + 9  2 978 ✅ + 9  0 💤 ±0  0 ❌ ±0 
4 042 runs  +15  4 042 ✅ +15  0 💤 ±0  0 ❌ ±0 

Results for commit 1d108cb. ± Comparison against base commit aeaf184.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #237 (Tracker lifecycle, editing and discovery privacy) in the consolidated eight-PR stack for #162.

The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks.

Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-11-private-failover branch September 20, 2026 11:13
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