Skip to content

tiering: every way the exact remote copy is unobtainable reaches the live substitute - #156

Open
frindle wants to merge 1 commit into
mainfrom
tiering-unobtainable-remote-route
Open

frindle wants to merge 1 commit into
mainfrom
tiering-unobtainable-remote-route

Conversation

@frindle

@frindle frindle commented Dec 1, 2026

Copy link
Copy Markdown
Owner

A promote that ends because the exact remote copy cannot be had now takes one route in the runner: a Plex session playing it is switched to the next best copy; otherwise the row is marked lost (or the lost_file alert is sent when there is no redownloader).

  • Persistent reader errors: READ_ERROR_LIMIT (3) consecutive promote_read_error events fail the row with reason "remote unreadable". Each one has already spent the per-chunk retry budget, so three is about half an hour of the same copy answering nothing.
  • chunk mismatch, permanently short and unreadable now return fixed reason constants (ops.UNOBTAINABLE_REASONS); the runner compares on those, not prose. The long text stays in restore_note.
  • A switch also marks the id as restore-tried so the optional auto restore does not run on a retired row. The flag-gated auto restore for a short remote is otherwise unchanged.
  • A substitute hash build that stopped is retried from the pass after the promote back-off delay, at most 3 times per process (each try reads the whole file); a stopped build was previously retried only after a restart.
  • Waiting players still get their error at once (the failed line is kept for the permanent cases). No defaults change; TIERING_APPLY unset stays a dry run.

…te as a bad chunk; a stopped substitute hash build is retried, bounded
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