mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Add a metric for suspicious parts in ZooKeeper (#56395)
This commit is contained in:
parent
02df5ac59c
commit
706f2dcf54
@ -101,6 +101,7 @@
|
||||
M(ReplicatedPartChecks, "Number of times we had to perform advanced search for a data part on replicas or to clarify the need of an existing data part.") \
|
||||
M(ReplicatedPartChecksFailed, "Number of times the advanced search for a data part on replicas did not give result or when unexpected part has been found and moved away.") \
|
||||
M(ReplicatedDataLoss, "Number of times a data part that we wanted doesn't exist on any replica (even on replicas that are offline right now). That data parts are definitely lost. This is normal due to asynchronous replication (if quorum inserts were not enabled), when the replica on which the data part was written was failed and when it became online after fail it doesn't contain that data part.") \
|
||||
M(ReplicatedCoveredPartsInZooKeeperOnStart, "For debugging purposes. Number of parts in ZooKeeper that have a covering part, but doesn't exist on disk. Checked on server start.") \
|
||||
\
|
||||
M(InsertedRows, "Number of rows INSERTed to all tables.") \
|
||||
M(InsertedBytes, "Number of bytes (uncompressed; for columns as they stored in memory) INSERTed to all tables.") \
|
||||
|
@ -133,6 +133,7 @@ namespace ProfileEvents
|
||||
extern const Event CreatedLogEntryForMutation;
|
||||
extern const Event NotCreatedLogEntryForMutation;
|
||||
extern const Event ReplicaPartialShutdown;
|
||||
extern const Event ReplicatedCoveredPartsInZooKeeperOnStart;
|
||||
}
|
||||
|
||||
namespace CurrentMetrics
|
||||
@ -1319,6 +1320,7 @@ void StorageReplicatedMergeTree::paranoidCheckForCoveredPartsInZooKeeperOnStart(
|
||||
{
|
||||
LOG_WARNING(log, "Part {} exists in ZooKeeper and covered by another part in ZooKeeper ({}), but doesn't exist on any disk. "
|
||||
"It may cause false-positive 'part is lost forever' messages", part_name, covering_part);
|
||||
ProfileEvents::increment(ProfileEvents::ReplicatedCoveredPartsInZooKeeperOnStart);
|
||||
chassert(false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user