Symptoms
Assume that you use Microsoft SQL Server 2016 and 2017. When you query the dynamic management views (DMV's) sys.dm_exec_session_wait_stats and sys.dm_os_wait_stats, you may see inconsistent results for wait types CXPACKET and CXCONSUMER for some parallel query plans.
The same inconsistency can also be found between sys.dm_os_wait_stats and the wait stats in an Actual Execution Plan.
Resolution
This issue is fixed in the following cumulative update and service pack for SQL Server:
Cumulative Update 4 for SQL Server 2017
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
Service pack information for SQL Server 2016
This issue is fixed in the following service pack for SQL Server:
Service Pack 2 for SQL Server 2016
About service packs for SQL Server:
Service packs are cumulative. Each new service pack contains all the fixes that are in previous service packs, together with any new fixes. Our recommendation is to apply the latest service pack and the latest cumulative update for that service pack. You do not have to install a previous service pack before you install the latest service pack. Use Table 1 in the following article for finding more information about the latest service pack and latest cumulative update.
How to determine the version, edition and update level of SQL Server and its components
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.