v.25.11Improvement
Introduced a LockGuardWithStopWatch class and used it
Introduced aLockGuardWithStopWatchclass and used it in the background pool for executing merges. In case a mutex was held for a second or some thread was struggling to get it within a second a warning message will be printed. Moved the heavy code from the destructor ofMergeMutateSelectedEntrytofinalizemethod to avoid holding the lock inMergeTreeBackgroundexecutor for too long. #88898 (Nikita Mikhaylov).