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 — golive: journal the measured handover delay; load-proof gap timing test (#534) by scuttletoby · Pull Request #554 · scuttletoby/t3code Conversation
Owner
Fixes #534 What
State question (tests)
General vs projectEverything here is general to the kit: upstream's 250 ms owner-lock wait (pinned in Old code
I ran both against 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…st (#534) The kit lets go of the owner lock at its first look after the launcher's claim of the serving lock (#548 already replaced the 100 ms hold with the main-process check). The verify step now journals handoverMs (an upper bound on claim -> let-go) and handoverLate when it reached the 250 ms the server waits for the owner lock. The probe-loop test no longer bounds wall-clock time: it checks that the kit let go at its first look that began after the claim, which a slow runner cannot break. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced
Owner
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Owner
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
…st (#534) (#554) The kit lets go of the owner lock at its first look after the launcher's claim of the serving lock (#548 already replaced the 100 ms hold with the main-process check). The verify step now journals handoverMs (an upper bound on claim -> let-go) and handoverLate when it reached the 250 ms the server waits for the owner lock. The probe-loop test no longer bounds wall-clock time: it checks that the kit let go at its first look that began after the claim, which a slow runner cannot break. Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…cks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…cks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…530) (#556) * golive: keep the home owned after a W1 or switch that stops T3 ends (#530) A W1 (and a switch) may fail or be killed with T3 stopped on purpose (the home may be half-restored). The owner lock it took after the stop was held by the run's own process, so it was gone with the run: the next SSH launch of the desktop app found the home free and started its own server on it. Right after the stop the kit now starts a holder, a transient unit of its own (t3-golive-hold-<hash of the home>, running `t3-golive hold --home <home>`), that takes the owner lock and keeps it until stopped; the run adopts it as its lock. Every start the kit makes goes through the handover, so the new launcher gets the home from the holder. A failure before the start, a failed start or a kill leaves the holder holding. The same back's rerun takes it over (no free moment, one unit name per home); a resumed verify lets a leftover holder go once the service runs T3; status and check name it; settle stops it; a reboot ends it. It is found by its live process in /proc/locks, never by a file. Where no transient unit starts, the run holds the lock itself, as before, and says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: format the README table Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: keep the holder until T3 really runs; no holder when /proc/locks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…st (#534) (#554) The kit lets go of the owner lock at its first look after the launcher's claim of the serving lock (#548 already replaced the 100 ms hold with the main-process check). The verify step now journals handoverMs (an upper bound on claim -> let-go) and handoverLate when it reached the 250 ms the server waits for the owner lock. The probe-loop test no longer bounds wall-clock time: it checks that the kit let go at its first look that began after the claim, which a slow runner cannot break. Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…530) (#556) * golive: keep the home owned after a W1 or switch that stops T3 ends (#530) A W1 (and a switch) may fail or be killed with T3 stopped on purpose (the home may be half-restored). The owner lock it took after the stop was held by the run's own process, so it was gone with the run: the next SSH launch of the desktop app found the home free and started its own server on it. Right after the stop the kit now starts a holder, a transient unit of its own (t3-golive-hold-<hash of the home>, running `t3-golive hold --home <home>`), that takes the owner lock and keeps it until stopped; the run adopts it as its lock. Every start the kit makes goes through the handover, so the new launcher gets the home from the holder. A failure before the start, a failed start or a kill leaves the holder holding. The same back's rerun takes it over (no free moment, one unit name per home); a resumed verify lets a leftover holder go once the service runs T3; status and check name it; settle stops it; a reboot ends it. It is found by its live process in /proc/locks, never by a file. Where no transient unit starts, the run holds the lock itself, as before, and says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: format the README table Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: keep the holder until T3 really runs; no holder when /proc/locks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…st (#534) (#554) The kit lets go of the owner lock at its first look after the launcher's claim of the serving lock (#548 already replaced the 100 ms hold with the main-process check). The verify step now journals handoverMs (an upper bound on claim -> let-go) and handoverLate when it reached the 250 ms the server waits for the owner lock. The probe-loop test no longer bounds wall-clock time: it checks that the kit let go at its first look that began after the claim, which a slow runner cannot break. Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…530) (#556) * golive: keep the home owned after a W1 or switch that stops T3 ends (#530) A W1 (and a switch) may fail or be killed with T3 stopped on purpose (the home may be half-restored). The owner lock it took after the stop was held by the run's own process, so it was gone with the run: the next SSH launch of the desktop app found the home free and started its own server on it. Right after the stop the kit now starts a holder, a transient unit of its own (t3-golive-hold-<hash of the home>, running `t3-golive hold --home <home>`), that takes the owner lock and keeps it until stopped; the run adopts it as its lock. Every start the kit makes goes through the handover, so the new launcher gets the home from the holder. A failure before the start, a failed start or a kill leaves the holder holding. The same back's rerun takes it over (no free moment, one unit name per home); a resumed verify lets a leftover holder go once the service runs T3; status and check name it; settle stops it; a reboot ends it. It is found by its live process in /proc/locks, never by a file. Where no transient unit starts, the run holds the lock itself, as before, and says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: format the README table Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: keep the holder until T3 really runs; no holder when /proc/locks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…st (#534) (#554) The kit lets go of the owner lock at its first look after the launcher's claim of the serving lock (#548 already replaced the 100 ms hold with the main-process check). The verify step now journals handoverMs (an upper bound on claim -> let-go) and handoverLate when it reached the 250 ms the server waits for the owner lock. The probe-loop test no longer bounds wall-clock time: it checks that the kit let go at its first look that began after the claim, which a slow runner cannot break. Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
…530) (#556) * golive: keep the home owned after a W1 or switch that stops T3 ends (#530) A W1 (and a switch) may fail or be killed with T3 stopped on purpose (the home may be half-restored). The owner lock it took after the stop was held by the run's own process, so it was gone with the run: the next SSH launch of the desktop app found the home free and started its own server on it. Right after the stop the kit now starts a holder, a transient unit of its own (t3-golive-hold-<hash of the home>, running `t3-golive hold --home <home>`), that takes the owner lock and keeps it until stopped; the run adopts it as its lock. Every start the kit makes goes through the handover, so the new launcher gets the home from the holder. A failure before the start, a failed start or a kill leaves the holder holding. The same back's rerun takes it over (no free moment, one unit name per home); a resumed verify lets a leftover holder go once the service runs T3; status and check name it; settle stops it; a reboot ends it. It is found by its live process in /proc/locks, never by a file. Where no transient unit starts, the run holds the lock itself, as before, and says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: format the README table Co-Authored-By: Claude Opus 5.5 <[email protected]> * golive: keep the holder until T3 really runs; no holder when /proc/locks is blind (#530) Lens round on #556: - The handover keeps the holder for every outcome but the launcher's claim while the service is not active: a `t3 update` that exits non-zero or times out, and a target that never comes up, no longer free the home. - hold_home starts no holder when /proc/locks cannot be read (it could never be found, adopted or stopped); the run holds the home itself and journals why. status and check name an active holder unit they cannot see there. - A reboot ending the holder is a known gap, documented; status now says the home is free then. - The switch guard's fail-open start leaves a disabled T3 (its W1 holds it) stopped and held. - holder_said: do not start T3 by hand while it holds. - #554's look-order test stamps the claim before BEGIN EXCLUSIVE (no GIL race); `looked` is set before the watcher starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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 assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. t3-golive: owner-lock handover margin shrank to ~110 ms (#531 verify nit)Uh 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 01402775 — 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. |