Repository navigation
Count Git-lock placeholder rejections in heartbeat telemetry - #2168
Merged
Tyrie Vella (tyrielv) merged 2 commits intoNov 11, 2026
Merged
Tyrie Vella (tyrielv) merged 2 commits into
Tyrie Vella (tyrielv) merged 2 commits into
Conversation
Keep the heartbeat count separate from negative-cache maintenance. Collect and reset each interval atomically, and add tests for rejection scope, concurrent increments, and cache independence. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Wait for all dedicated writers before the heartbeat loop. Bound the writer waits and heartbeat samples, and increase the workload to exercise contended counter updates. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Tyrie Vella (tyrielv)
marked this pull request as ready for review
November 11, 2026 21:30
|
[KeithBot]: ✅ No issues found · iteration 1 ( Approach: Right place: one atomic counter at the sole Git-lock rejection callback, reported beside the Heartbeat's placeholder counters and kept apart from the cache-control counter that clears reset. Validation
Approving. 🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon + approach review · reply on a thread to dispute |
Keith Klein (KeithIsSleeping)
approved these changes
Nov 11, 2026
This was referenced Nov 11, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem and Context
The Git command lock can prevent GVFS from creating a placeholder for a projected file. GVFS rejects that callback with
FileNotFound. Successful placeholder telemetry does not count these rejections.The existing negative-cache counter controls cache maintenance. Cache clears reset that counter, so it cannot supply a heartbeat interval total.
Changes
FilePlaceholderCreationBlockedForGitto heartbeat metadata as an independent atomic 64-bit counter. Each heartbeat atomically collects and resets its interval count.FileNotFoundresponses. Either Git or another process can trigger a callback.