mirror of https://github.com/apache/kafka.git
MINOR: Change info log to debug for scheduled timer tasks. (#19624)
CI / build (push) Waiting to run
Details
CI / build (push) Waiting to run
Details
* We have a 2 perpetual timer tasks in ShareCoordinatorService to do internal topic cleanup and snapshot cold partitions respectively. * There are a few info level logs being printed as part of the procedures. These are introducing noise and are not absolutely necessary. * We also move a debug log to error for the prune job. * To remedy the situation, this PR changes the log level from info to debug. Reviewers: Apoorv Mittal <apoorvmittal10@gmail.com>, Andrew Schofield <aschofield@confluent.io>
This commit is contained in:
parent
44025d8116
commit
4558d15856
|
@ -271,7 +271,7 @@ public class ShareCoordinatorService implements ShareCoordinator {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupRecordPruning() {
|
private void setupRecordPruning() {
|
||||||
log.info("Scheduling share-group state topic prune job.");
|
log.debug("Scheduling share-group state topic prune job.");
|
||||||
timer.add(new TimerTask(config.shareCoordinatorTopicPruneIntervalMs()) {
|
timer.add(new TimerTask(config.shareCoordinatorTopicPruneIntervalMs()) {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -291,7 +291,6 @@ public class ShareCoordinatorService implements ShareCoordinator {
|
||||||
}
|
}
|
||||||
|
|
||||||
private CompletableFuture<Void> performRecordPruning(TopicPartition tp) {
|
private CompletableFuture<Void> performRecordPruning(TopicPartition tp) {
|
||||||
// This future will always be completed normally, exception or not.
|
|
||||||
CompletableFuture<Void> fut = new CompletableFuture<>();
|
CompletableFuture<Void> fut = new CompletableFuture<>();
|
||||||
|
|
||||||
runtime.scheduleWriteOperation(
|
runtime.scheduleWriteOperation(
|
||||||
|
@ -322,11 +321,11 @@ public class ShareCoordinatorService implements ShareCoordinator {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("Pruning records in {} till offset {}.", tp, off);
|
log.debug("Pruning records in {} till offset {}.", tp, off);
|
||||||
writer.deleteRecords(tp, off)
|
writer.deleteRecords(tp, off)
|
||||||
.whenComplete((res, exp) -> {
|
.whenComplete((res, exp) -> {
|
||||||
if (exp != null) {
|
if (exp != null) {
|
||||||
log.debug("Exception while deleting records in {} till offset {}.", tp, off, exp);
|
log.error("Exception while deleting records in {} till offset {}.", tp, off, exp);
|
||||||
fut.completeExceptionally(exp);
|
fut.completeExceptionally(exp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -347,7 +346,7 @@ public class ShareCoordinatorService implements ShareCoordinator {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupSnapshotColdPartitions() {
|
private void setupSnapshotColdPartitions() {
|
||||||
log.info("Scheduling cold share-partition snapshotting.");
|
log.debug("Scheduling cold share-partition snapshotting.");
|
||||||
timer.add(new TimerTask(config.shareCoordinatorColdPartitionSnapshotIntervalMs()) {
|
timer.add(new TimerTask(config.shareCoordinatorColdPartitionSnapshotIntervalMs()) {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Reference in New Issue