Symptoms
Assume that you restore a compressed backup in Microsoft SQL Server 2014, 2016 and 2017. Occasionally, the restore operation may fail with the following error message:
Note
Error: 17066, Severity: 16, State: 1.
SQL Server Assertion: File:FileName, line=LineNumber Failed Assertion = '!m_ActiveConsumptionList.IsEmpty () || !m_ActiveReads.IsEmpty () || !m_DecodeOutputQ.IsEmpty ()'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
Resolution
This issue is fixed in the following cumulative updates for SQL Server:
Cumulative Update 13 for SQL Server 2017
Cumulative Update 4 for SQL Server 2016 SP2
Cumulative update 12 for SQL Server 2016 SP1
Cumulative Update 1 for SQL Server 2014 SP3
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Latest cumulative update for SQL Server 2017
Latest cumulative update for SQL Server 2016
Latest cumulative update for SQL Server 2014
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology that Microsoft uses to describe software updates.