MINOR: Change log level for cold snapshot log. (#20209)
CI / build (push) Waiting to run Details

* We INFO log a message, if a share partition could be cold snapshotted.
* However, this may create noise if we have highly partitioned topic
backing the share partition. This will be further exacerbated by
multiple share groups using that topic.
* To reduce log pollution, this PR changes the level to DEBUG.

Reviewers: ShivsundarR <shr@confluent.io>, Andrew Schofield
 <aschofield@confluent.io>
This commit is contained in:
Sushant Mahajan 2025-07-21 20:43:37 +05:30 committed by GitHub
parent cdc2d957ed
commit 6ef675d08b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public class ShareCoordinatorShard implements CoordinatorShard<CoordinatorRecord
long timeSinceLastSnapshot = time.milliseconds() - shareGroupOffset.writeTimestamp();
if (timeSinceLastSnapshot >= config.shareCoordinatorColdPartitionSnapshotIntervalMs()) {
// We need to force create a snapshot here
log.info("Last snapshot for {} is older than allowed interval.", sharePartitionKey);
log.debug("Last snapshot for {} is older than allowed interval (last snapshot delta {}).", sharePartitionKey, timeSinceLastSnapshot);
records.add(ShareCoordinatorRecordHelpers.newShareSnapshotRecord(
sharePartitionKey.groupId(),
sharePartitionKey.topicId(),