Repository navigation
EventPipe: Fix event loss during final session flush - #137991
Merged
pavelsavara merged 1 commit intoNov 21, 2026
Merged
Conversation
Drain all buffered events after the session is unpublished and its writers have quiesced. Preserve the exclusive timestamp cutoff for live streaming, but do not discard shutdown events that share the final flush's clock tick. Add deterministic frozen-clock regressions for netperf v3 and nettrace v4. Co-authored-by: Copilot <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
This was referenced Nov 20, 2026
pavelsavara
marked this pull request as ready for review
November 20, 2026 17:35
pavelsavara
requested review from
lateralusX,
mdh1418 and
noahfalk
as code owners
November 20, 2026 17:35
Contributor
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
akoeplinger
approved these changes
Nov 20, 2026
pavelsavara
deleted the
pavelsavara/browser-coreclr-eventpipe-final-flush
branch
November 21, 2026 10:59
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.
Summary
EventPipe's final session drain uses the same exclusive current-timestamp cutoff as live streaming. Events sharing the final flush's clock tick can remain buffered and be discarded when the session is destroyed. Browser clock quantization makes this observable as lost events at the final sequence point.
Found while investigating #134929. This PR does not remove its SDK/TFM pins or close that issue.
Validation
cmake --build artifacts\tests\coreclr\obj\windows.x64.Debug\Native --target NativeEventPipeTestsDriver-- passed in a Visual Studio x64 developer environment; rechecked before committing..\artifacts\tests\coreclr\obj\windows.x64.Debug\Native\native\eventpipe\NativeEventPipeTestsDriver.exe-- 92/92 passed..\build.cmd -bl -os browser -subset clr+libs+host -c Debug /p:RuntimeFlavor=CoreCLR /p:EnableHotReloadInRuntimeConfigDevFile=false-- passed, zero warnings/errors. The initial attempt hit the known WasmAppHost hot-reload static-web-assets packaging issue; the documented command-line workaround was used.git diff --check-- passed.Validation limitation
The PGO-enabled browser attempt hit a separate crash in
PgoManager::Header::SchemaSizeMaxduringLogInstrumentationData, invoked bysession_stoppingbefore the modified final-drain path runs. The successful browser trace checks therefore usedDOTNET_InterpPGO=0; this PR does not claim successful end-to-end interpreter PGO collection on current main.Note
This PR and its description were created with GitHub Copilot.