Merged
Conversation
- Version bump all 4 csproj files from 1.2.0 to 1.3.0 - Fix UTC timezone mismatch in process_deadlock_xml: sp_BlitzLock expects local time dates but was receiving UTC, causing 0 parsed results on any server not in UTC. Convert dates to local time before passing to sp_BlitzLock. - Add CHANGELOG entries for both 1.2.0 (previously missing) and 1.3.0 - 1.3.0 includes schema upgrade warning for large memory_stats tables Tested: deployed fix to sql2016/2017/2019/2022, verified 192 stuck unprocessed deadlock XML events parsed successfully on sql2022. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
process_deadlock_xml— sp_BlitzLock expects local time dates but was receiving UTC, causing 0 parsed results on any server not in UTCDetails
Deadlock XML timezone fix
collect.deadlock_xml.event_timestores UTC (from XE timestamps).process_deadlock_xmlderived date ranges from these UTC values and passed them directly to sp_BlitzLock. But sp_BlitzLock internally converts@StartDate/@EndDatefrom local time to UTC, so the dates were shifted by the server's timezone offset (e.g., +8 hours for PST), resulting in zero matches.Fix: convert dates from UTC to local time before passing to sp_BlitzLock. Also fixed the DELETE and verification queries to use local-time dates since
collect.deadlocks.event_datestores local time (sp_BlitzLock's output format).Test plan
🤖 Generated with Claude Code