Skip to content

Feature/add exclusion for backupthread to long running queries#5

Merged
HannahVernon merged 2 commits into
devfrom
feature/add-exclusion-for-BACKUPTHREAD-to-long-running-queries
Mar 2, 2026
Merged

Feature/add exclusion for backupthread to long running queries#5
HannahVernon merged 2 commits into
devfrom
feature/add-exclusion-for-BACKUPTHREAD-to-long-running-queries

Conversation

@HannahVernon
Copy link
Copy Markdown
Owner

What does this PR do?

Addresses issues from PR 362 in ErikDarling/PerformanceMonitor.

  1. Added BROKER_RECEIVE_WAITFOR wait type to waitforFilter exclusions.
  2. Added miscWaitsFilter to exclude XE_LIVE_TARGET_TVF waits.
  3. Removed unused parameters.
  4. Corrected minimum value for maxLongRunningQueryCount (minimum is now 1 instead of 5).
  5. Reverted Controls/LandingPage.xaml.cs

Which component(s) does this affect?

  • [✅] Full Dashboard

How was this tested?

Tested against local 2022 instance

Checklist

  • [✅] I have read the contributing guide
  • [✅] My code builds with zero warnings (dotnet build -c Debug)
  • [✅] I have tested my changes against at least one SQL Server version
  • [✅] I have not introduced any hardcoded credentials or server names

…dded miscWaitsFilter to exclude XE_LIVE_TARGET_TVF waits. Removed unused parameters. Corrected minimum value for maxLongRunningQueryCount (minimum 1 instead of 5).
@HannahVernon HannahVernon merged commit b6d3d3f into dev Mar 2, 2026
2 checks passed
HannahVernon added a commit that referenced this pull request Mar 27, 2026
…eout

- DuckDbInitializer.AcquireWriteLock() now accepts optional TimeSpan timeout
  to prevent indefinite blocking when archival holds the lock
- DismissAlertsAsync uses exclusive write lock + single batched UPDATE with
  VALUES list + BEGIN/COMMIT/ROLLBACK transaction for all-or-nothing semantics
- DismissAllVisibleAlertsAsync uses exclusive write lock (was read lock)
- OpenWriteConnectionAsync uses 5-second timeout to prevent UI freeze
- UI dismiss handlers catch TimeoutException with friendly retry message
- LockedConnection updated to document both read and write lock usage
- 7 new tests covering batched UPDATE, transaction commit/rollback,
  write lock exclusivity, and timeout behavior (225 total, all passing)

Addresses items #4, #5, erikdarlingdata#11 from issue erikdarlingdata#718 improvement list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant