mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5584] [MERGED] fix: recover writer leases after reboot #6834
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#6834
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5584
Author: @Gunterlie
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/28/2026
Merged by: @Gunterlie
Base:
staging← Head:evict-the-ghosts📝 Commits (8)
2951524fix: recover writer leases after rebootcae272cfix: detect reused writer lease PIDsab14390fix: use system clock rate for PID checks453c098Merge branch 'staging' into evict-the-ghosts53ee469Revert "Merge branch 'staging' into evict-the-ghosts"cc2d5aaReapply "Merge branch 'staging' into evict-the-ghosts"fb3dcdcRevert "Reapply "Merge branch 'staging' into evict-the-ghosts""5219093Reapply "Reapply "Merge branch 'staging' into evict-the-ghosts""📊 Changes
3 files changed (+189 additions, -35 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/db/file-backed-store.ts(+120 -11)📝
scripts/regressions/storage-writer-lock.regression.ts(+67 -24)📄 Description
Linked issue
Closes #5580
Why this change
What changed
/proc/sys/kernel/random/boot_id.Win32_OperatingSystem.LastBootUpTime.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm regression:node --filter storage-writer-lockpassed.pnpm checkpassed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable. This change affects server startup and storage lease recovery.
Proof
The regression writes a version 4 same-host lease with the current process PID and a prior boot ID. Startup reclaims it and replaces its token. The existing live-writer checks continue to reject a second writer for the current boot.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.