WAIT_XTP_OFFLINE_CKPT_NEW_LOG

(Republishing, or using this info in a commercial product/website, is prohibited without permission. All other uses are permitted. If in doubt, please ask.)

(Back to main page…)

Description:

Just as the Books Online description below. There is one offline checkpoint thread in 2014, and multiple threads in 2016 onward, that process operations around checkpoint file pairs (a data and delta file pair). In this case, one of those threads is waiting for a new log block to be created and flushed so that it can then be processed. You can read more about CFP processing in Books Online here.

(Books Online description: “Occurs when offline checkpoint is waiting for new log records to scan.”)

Questions/comments on this wait type? Click here to send Paul an email, especially if you have any information to add to this topic.

Added in SQL Server version:

2014

Removed in SQL Server version:

I have not seen this wait to be a noticeable contention point.

Extended Events wait_type value:

Maps to the XTP_OFFLINE_CKPT_NEW_LOG map_value in sys.dm_xe_map_values.

The map_key value in sys.dm_xe_map_values is 924 in 2014 RTM. After 2014 RTM, you must check the DMV to get the latest value as some map_key values have changed in later builds.

Other information:

This wait type is one that I usually filter out as a benign wait when doing wait statistics analysis.

I have not seen this wait to be a noticeable contention point.

Known occurrences in SQL Server (list number matches call stack list):

  1. Waiting for a new log block to be created so that it can be processed (SQL Server 2014)
  2. Waiting for a new log block to be created so that it can be processed (SQL Server 2016+)

Abbreviated call stacks (list number matches known occurrences list):

  1. SOS_Task::PostWait+9e
    EventInternal<SuspendQueueSLock>::Wait+1fb
    SequencedObject<LogBlockId,SequencedWaitInfo<LogBlockId>,0>::WaitUntilSequenceAdvances+160
    OfflineCheckpointWorker::GetNextLogBlock+10d
    OfflineCheckpointWorker::DoWorkInternal+f7
    OfflineCheckpointWorker::DoWork+3aa
    OfflineCheckpointWorker::WorkLoop+40f
    SOS_Task::Param::Execute+21e
    SOS_Scheduler::RunTask+a8
  2. SOS_Task::PostWait+0x6f
    WaitableBase::Wait+0x178
    SequencedObject<LogBlockId,SequencedWaitInfo<LogBlockId>,0>::WaitUntilSequenceAdvances+0x187
    LogConsumer::WaitForLogBlock+0x2a
    HkLogIterator<HkHostCheckpointController>::GetNextLogBlock+0xed
    HkHostCheckpointController::DoWork+0x3d5
    HkHostControllerCtxtImpl::WorkLoop+0x2f5
    SOS_Task::Param::Execute+0x232
    SOS_Scheduler::RunTask+0xb5
    SOS_Scheduler::ProcessTasks+0x39d