dstorage: a request that panics fails, and its worker goes on #454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/454"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lautarocherro on 2026-11-27T20:30:33Z.
What this changes
Refs #446. A panic in
executekilled its worker and left the read marked running for good, so the status entries behind it never completed. That matches the report (running 1, no failure, every other read healthy). Static review found no panicking input in the decoders, so this does not prove the cause. It closes this failure mode either way, and the warning now tells the two candidates apart.E_FAIL(no other failure uses it), its status completes, and the worker goes on.a status entry is still pendingnow lists the reads running longest: age, worker (dstorage N), file, offset, options. A read running for seconds on a live worker is a stalled read (for example apreadthat never returns), not a panic.How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory: 395 passed. Nativecargo test -p victory-hle: 150 passed.null_out_pointers_fail_without_leaking_lanes_or_handlesfails about 1 run in 10, on main too (12 of 100): it compares the scheduler's globalnext_idwhile other tests create queues.a_panicking_request_fails_its_status_and_the_queue_goes_on,a_worker_survives_a_panic(both fail on main: "never completed"),running_reads_name_what_they_read,an_unsupported_source_is_not_read_for_its_name(the names in the warning and the failure line never read the source of a requestexecuterefuses). A#[cfg(test)]tag makes a request panic; release builds are unchanged apart from the catch.cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: passes, also with--all-features.Checklist
VICTORY_*variable and documented (none new; the existing warning gains a field)Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:32:37Z.
Review: APPROVED
Check report (helping the maintainer clear the queue):
checkandmacos-scriptsgreen on8d0d64d3.catch_unwindaroundexecuteturns a panicking request intoE_FAIL, so its status entry completes, the worker survives and its staging is given back (the release profile unwinds, so this holds in a real build too). The pending warning now names the reads running longest.source_nameno longer reads a source an unsupported option makes foreign. Tests for each:a_panicking_request_fails_its_status_and_the_queue_goes_on,a_worker_survives_a_panic,running_reads_name_what_they_read,an_unsupported_source_is_not_read_for_its_name. Docs updated.226645f9) merged with this PR, #499 and #507:victory-hletests pass on x86_64-apple-darwin (336 + 17), Windows clippy (-D warnings) clean,cargo xtask policyok.execute("Reads, inflates and/or unpacks, and writes one request.") now sits abovefailedinstead.Thanks @lautarocherro!