mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5312] [Issue]: Dev watchers repeatedly emit StorageWriterLeaseError #2936
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2936
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @SpicyMarinara on GitHub (Aug 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5312
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Abandoned development watcher supervisors remain alive after their owning session disappears. When another Marinara server owns the file-storage lease, every later source edit makes those watchers spawn a server that fails with
StorageWriterLeaseErroragain.Expected behavior
A dev watcher that cannot acquire the storage writer lease because another live Marinara server owns it should exit. It must not remain resident and retry startup after every file change.
Actual behavior
The failed server child exits, but
tsx watchand itspnpmsupervisor keep running. Multiple abandoned supervisors accumulate, producing repeated lease errors even though the active lease is valid and storage is safe.Steps to reproduce
StorageWriterLeaseErrorfor the healthy writer's lease.Environment
stagingLogs, screenshots, or video
Observed one healthy server holding
.writer-leaseand listening on port 7860, alongside eight parentlesspnpm --filter @marinara-engine/server dev/tsx watchprocess groups. The lease error was emitted by the duplicate starts; the lease owner's PID was still live.Additional context
The storage lease is behaving correctly by preventing concurrent writers. The regression is that the development watcher treats this fatal ownership conflict like an ordinary application crash and continues watching forever.
Template check
@SpicyMarinara commented on GitHub (Aug 20, 2026):
Fixed and merged into staging by #5313. The guarded development watcher now exits on the verified writer-lease conflict while preserving the healthy lease owner.