This recurring recovery assertion on CU27 requires a Microsoft support case with the existing dumps; first correlate it to an AG database and redo position, because the assertion text alone does not establish whether the cause is an engine defect, damaged log content, an external filter/module, or hardware/I/O corruption.
What the assertion establishes
The stack shows that a HADR recovery worker encountered a log record it could not classify while applying or formatting redo. Recovery uses transaction-log records to roll changes forward, and every record normally has an operation and LSN.^1^
lp->GetOpCode() != LOP_NULL followed by Unclassifed log op is therefore consistent with an internal log-record validation failure. It does not, by itself, prove that a literal LOP_NULL was persisted to disk or identify its cause. Microsoft lists these general assertion causes:
- SQL Server product defect
- Database corruption
- External DLL or file-system filter driver
- Less commonly, faulty memory or CPU^2^
CU27 is build 16.0.4295.3, but its published fix list does not document this exact assertion.^3^ The persistence from RTM through CU27 makes another generic “install the CU” recommendation insufficient.
Identify the affected database and redo boundary
Capture this repeatedly on both replicas and preserve the row immediately before and after the next assertion:
SELECT
DB_NAME(database_id) AS database_name,
is_local, synchronization_state_desc,
database_state_desc, is_suspended,
suspend_reason_desc, redo_queue_size, redo_rate,
last_received_lsn, last_hardened_lsn,
last_redone_lsn, last_redone_time
FROM sys.dm_hadr_database_replica_states
ORDER BY database_name, is_local;
On SQL Server 2022, this DMV requires VIEW SERVER PERFORMANCE STATE. Only last_redone_lsn and last_commit_lsn are real record LSNs; values such as last_received_lsn and last_hardened_lsn represent log-block boundaries. Consequently, this identifies the database and narrows the failure window, but normally will not reveal the exact offending record.^4^
Also monitor Redo Queue Size and Redo Rate per database:
- SSMS → Always On High Availability → availability group → Show Dashboard
- Add Redo Queue Size (KB) and Redo Rate (KB/sec)
- On the secondary, Performance Monitor → SQLServer:Database Replica → Recovery Queue and Redone Bytes/sec^5^
A database whose redo stops, queue grows, last_redone_time freezes, or state changes at 15:35:55 is the primary candidate.
Preserve the HADR event history
Ensure AlwaysOn_health is running and starts automatically on every replica:
ALTER EVENT SESSION AlwaysOn_health ON SERVER
STATE = START;
ALTER EVENT SESSION AlwaysOn_health ON SERVER
WITH (STARTUP_STATE = ON);
Then preserve the alwayson_health*.xel, system_health*.xel, and *_SQLDIAG_*.xel files spanning the event. The built-in session captures AG state changes and other HADR events; additional HADR debug events can be enumerated with:
SELECT name, description
FROM sys.dm_xe_objects
WHERE name LIKE '%hadr%';
The supported configuration and SSMS path are Management → Extended Events → Sessions → Alwayson_health.^6^
CU27 caveat: avoid polling sys.dm_exec_requests while a database is recovering. CU27 has a separate known issue where that query can itself generate an access-violation dump during startup, restore, or AG recovery.^3^ That issue has a different failure signature and does not explain the assertions shown here.
Integrity and external-I/O checks
After identifying the database, run a full DBCC CHECKDB on a restored copy where possible:
DBCC CHECKDB (N'AffectedDatabase')
WITH NO_INFOMSGS, ALL_ERRORMSGS;
Restore from a known-good backup rather than using repair if corruption is reported.^7^ A clean result does not clear the transaction log: CHECKDB does not validate log corruption.^2^
Inventory non-Microsoft modules and filter drivers:
SELECT company, name, description, file_version
FROM sys.dm_os_loaded_modules
WHERE company <> 'Microsoft Corporation';
fltmc filters
Pay particular attention to antivirus, endpoint protection, encryption, snapshot, replication, and backup filters touching .mdf, .ndf, or .ldf paths. Do not disable security software indiscriminately; involve its vendor and test exclusions or updates under change control.^8^
Support package
Provide Microsoft Support with:
-
SQLDump0064–SQLDump0066: .mdmp, .txt, and .log
- Complete ERRORLOG archives from every replica
-
alwayson_health, system_health, and SQLDIAG XEL files
- DMV snapshots showing database name and redo boundaries
- Windows System/Application event logs, especially storage errors
-
fltmc filters, loaded-module output, systeminfo
- AG topology and exact operation preceding the event
- Whether reseeding/restoring that database to different storage reproduces it
The current minidumps are valid diagnostic artifacts. Generate a larger dump only if Microsoft requests it: dump generation freezes sqlservr.exe and can trigger an AG timeout or failover.^9^
References
- Restore and recovery overview (SQL Server)
- MSSQLSERVER_3624
- Cumulative Update 27 for SQL Server 2022 (KB5104824) - SQL Server | Microsoft Support
- sys.dm_hadr_database_replica_states (Transact-SQL)
- Troubleshoot recovery (redo) queuing in an Always On availability group
- Configure Extended Events for availability groups
- DBCC CHECKDB (Transact-SQL)
- Performance and consistency issues when certain modules or filter drivers are loaded
- Use Sqldumper.exe to generate a dump file in SQL Server