v.23.4New Feature
Added lost_part_count column to system.replicas table for monitoring lost parts
Added alost_part_countcolumn to thesystem.replicastable. The column value shows the total number of lost parts in the corresponding table. Value is stored in zookeeper and can be used instead of not persistentReplicatedDataLossprofile event for monitoring. #48526 (Sergei Trifonov).
Why it matters
This feature provides a persistent metric for monitoring data loss in replicated tables by tracking lost parts stored in Zookeeper. It replaces the previously used non-persistentReplicatedDataLoss profile event, improving reliability and ease of monitoring.How to use it
Users can query the newlost_part_count column in the system.replicas table directly using SELECT statements to monitor lost parts counts. For example:SELECT database, table, replica_name, lost_part_count
FROM system.replicas
WHERE lost_part_count > 0No additional configuration is needed as the value is maintained automatically in Zookeeper.