72.41% (42/58) Uncovered changed code (with context): ================================================================================ src/Common/MemoryTracker.cpp ================================================================================ --- uncovered block 380-383 --- 378 | auto * flush_prefix = DB::Jemalloc::getValue("opt.prof_prefix"); 379 | if (!flush_prefix) >> 380 | { >> 381 | if (throw_if_memory_exceeded) >> 382 | LOG_WARNING(getLogger("MemoryTracker"), "Cannot flush memory profile, empty prefix"); >> 383 | } 384 | else if (jemalloc_flush_profile_on_memory_exceeded_interval_s) 385 | { --- uncovered block 385-396 --- 383 | } 384 | else if (jemalloc_flush_profile_on_memory_exceeded_interval_s) >> 385 | { >> 386 | static std::atomic last_flush_time{0}; >> 387 | UInt64 now = static_cast(time(nullptr)); >> 388 | UInt64 last = last_flush_time.load(std::memory_order_relaxed); >> 389 | if (now - last >= jemalloc_flush_profile_on_memory_exceeded_interval_s >> 390 | && last_flush_time.compare_exchange_strong(last, now, std::memory_order_relaxed)) >> 391 | { >> 392 | auto flushed_profile = DB::Jemalloc::flushProfile(flush_prefix); >> 393 | if (throw_if_memory_exceeded) >> 394 | LOG_INFO(getLogger("MemoryTracker"), "Flushed memory profile to {} after total memory exceeded", flushed_profile); >> 395 | } >> 396 | } 397 | else 398 | { === Lost Baseline Coverage: 13 lines === ================================================================================ programs/server/Server.cpp ================================================================================ --- lost coverage block 1706-1712 --- 1704 | LOG_WARNING(log, "Integrity check of the executable skipped because the reference checksum could not be read."); 1705 | } >> 1706 | else >> 1707 | { >> 1708 | String calculated_binary_hash = getHashOfLoadedBinaryHex(); >> 1709 | if (calculated_binary_hash == stored_binary_hash) >> 1710 | { >> 1711 | LOG_INFO(log, "Integrity check of the executable successfully passed (checksum: {})", calculated_binary_hash); >> 1712 | } 1713 | else 1714 | { --- lost coverage block 1742-1742 --- 1740 | } 1741 | } >> 1742 | } 1743 | } 1744 | ================================================================================ src/Common/MemoryTracker.cpp ================================================================================ --- lost coverage block 385-385 --- 383 | } 384 | else if (jemalloc_flush_profile_on_memory_exceeded_interval_s) >> 385 | { 386 | static std::atomic last_flush_time{0}; 387 | UInt64 now = static_cast(time(nullptr)); --- lost coverage block 387-389 --- 385 | { 386 | static std::atomic last_flush_time{0}; >> 387 | UInt64 now = static_cast(time(nullptr)); >> 388 | UInt64 last = last_flush_time.load(std::memory_order_relaxed); >> 389 | if (now - last >= jemalloc_flush_profile_on_memory_exceeded_interval_s 390 | && last_flush_time.compare_exchange_strong(last, now, std::memory_order_relaxed)) 391 | { WARNING: Failed to get start time for [Print Uncovered Code] - start time and duration won't be set