You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lite and Darling log a Warning on every cycle while the long-query session cannot be created #4964
Sometimes the long-query trace is on but its Extended Events session cannot be created. Both apps then try again on every cycle and log a Warning each time. Nothing caps it.
Darling logs one or two Warnings per sweep: the session reconcile and the worker can each log one. Two known cases reach this. A registration for an Azure SQL Database logical server whose login cannot read master is one. A server where every CREATE is refused is the other.
Lite logs one Warning per collection cycle, because it creates the session on every cycle.
At one cycle a minute, that is 1,440 to 2,880 Warnings a day for one server, all saying the same thing.
The drop side already has a cap (#4944). After 5 failed passes it logs one Warning, then tries once an hour at Debug.
Why the retry stays
Trying the create again on every cycle is right. Each attempt records the fault again, so collection health shows SESSION_MISSING. Only the log level of the repeats changes.
Fix direction
Log the first failure at Warning. Log repeats of the same failure at Debug until a create succeeds or the server reconnects. Keep recording the fault on every attempt. Do the same in both apps.
Where it happens
Darling: DarlingXeSessions.cs, where the enable-side listing failure is thrown again, and the worker's general catch around the long-query reconcile in DarlingWorker.cs.
Lite: the per-cycle create in RemoteCollectorService.LongQueryCompletions.cs.
Activity
A long-query trace session that cannot be created logs its first fail…
Tests: Lite's long-query create refused in every Azure database logs …
Lite's long-query create logs its per-database refusals and the all-r…
Tests: Lite's server-scoped long-query drop that fails on every cycle…
Lite's server-scoped long-query drop that fails goes through the same…
Tests: Darling's server-scoped long-query drop that fails on every sw…
Tests: the Lite lifecycle test file keeps one kind of line ending aga…
Darling's server-scoped long-query drop that fails goes through the s…
Tests: the deadlock and blocked-process Azure ensures that are refuse…
The deadlock and blocked-process Azure ensures that are refused on ev…
Tests: the deadlock and blocked-process collectors' own line for a fa…
The deadlock and blocked-process collectors' own line for a failed en…
Tests: the long-query collector's own line for a failed create logs t…
The long-query collector's own line for a failed create logs the firs…
Tests: the long-query collector line tests' helper comment names the …
Tests: a missing-session collector's line logs the first failing swee…
A missing Extended Events session's per-sweep line logs the first fai…
Lite and Darling stop dropping Extended Events sessions that another …
erikdarlingdata commentedon Oct 3, 2026
Fixed by #4967, now on dev.