GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(core): fence database execution before recovery (alternative) by mradwankhalil · Pull Request #60605 · anomalyco/opencode Conversation
Contributor
Issue for this PRFixes #51213 Draft alternative to #58929. Additional stock v2.2.2 Windows evidence is in duplicate report #60557. Type of change
What does this PR do?Acquire a process-scoped SQLite execution lease before filesystem database bootstrap or restart recovery. A live competing process is rejected; a successor can recover after the owner exits. The private underscore table lets ownership precede application schema creation without exposing it through KV. Unlike #58929's per-claim PID check, this proposal refuses the competing execution process before admission, including simultaneous recovery attempts. It deliberately follows the single-shared-process model rather than supporting concurrent servers on one file database. The shared CLI resolver first reuses a healthy managed service, then checks ownership before implicit spawning. Memory/injected-client databases and existing Session/Job completion semantics are unchanged. Older binaries must be stopped during rollout; this is not distributed multi-host execution support. How did you verify your code works?
Visual<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" role="img" aria-label="One execution owner per database"><style>@keyframes pulse{50%{opacity:.25}}.p{animation:pulse 2s infinite}@media(prefers-reduced-motion:reduce){.p{animation:none}}</style><g fill="none" stroke="currentColor" stroke-width="2"><rect x="10" y="20" width="48" height="30" rx="5"/><path d="M58 35h40"/><ellipse cx="120" cy="22" rx="20" ry="7"/><path d="M100 22v24c0 9 40 9 40 0V22"/><path d="M142 35h36m-20-6 12 12m0-12-12 12" opacity=".35"/><rect x="182" y="20" width="48" height="30" rx="5" opacity=".35"/></g><circle class="p" cx="78" cy="35" r="3" fill="currentColor"/><text x="120" y="67" fill="currentColor" text-anchor="middle" font-family="monospace" font-size="10">one execution owner</text></svg> Screenshots / recordingsBackend-only change; the schematic illustrates ownership. No application UI was changed. Checklist
Tested upstreamUpstream dev 34aaa90 plus e7af3a5: core/CLI/util typechecks, 75 core, 5 CLI and 4 util tests on Windows; compiled ownership fixtures passed; final OCR audit incomplete Fixes #51213
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAcquire a process-scoped execution lease before filesystem database bootstrap or session recovery. The shared CLI resolver refuses to spawn beside an unregistered live owner, while healthy managed services remain reusable. Preserve existing Session/Job semantics and recover only after proven local process death. No heartbeat expiry or public schema migration is introduced.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Background service resumes sessions still running on another server that shares the databaseUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |