Skip to content

Commit 6ef675d

Browse files
authored
MINOR: Change log level for cold snapshot log. (#20209)
* 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>
1 parent cdc2d95 commit 6ef675d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public CoordinatorResult<Void, CoordinatorRecord> snapshotColdPartitions() {
593593
long timeSinceLastSnapshot = time.milliseconds() - shareGroupOffset.writeTimestamp();
594594
if (timeSinceLastSnapshot >= config.shareCoordinatorColdPartitionSnapshotIntervalMs()) {
595595
// We need to force create a snapshot here
596-
log.info("Last snapshot for {} is older than allowed interval.", sharePartitionKey);
596+
log.debug("Last snapshot for {} is older than allowed interval (last snapshot delta {}).", sharePartitionKey, timeSinceLastSnapshot);
597597
records.add(ShareCoordinatorRecordHelpers.newShareSnapshotRecord(
598598
sharePartitionKey.groupId(),
599599
sharePartitionKey.topicId(),

0 commit comments

Comments
 (0)