Since Storagemergetree::background_task_handle Is Initialized in Startup() the Mergetreeblockoutputstream::write() May Try to Use It Before Initialization
Official CH changelog text
Since StorageMergeTree::background_task_handle is initialized in startup() the MergeTreeBlockOutputStream::write() may try to use it before initialization. Just check if it is initialized. #6080 (Ivan)