Skip to content

Commit

Permalink
[hotfix][connector/kafka] Reduce the offset commit logging verbosity …
Browse files Browse the repository at this point in the history
…from INFO to DEBUG.
  • Loading branch information
lindong28 authored and becketqin committed Mar 29, 2021
1 parent b0077c4 commit b5b9682
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ public List<KafkaPartitionSplit> snapshotState(long checkpointId) {

@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
LOG.info("Committing offsets for checkpoint {}", checkpointId);
LOG.debug("Committing offsets for checkpoint {}", checkpointId);
((KafkaSourceFetcherManager<T>) splitFetcherManager)
.commitOffsets(
offsetsToCommit.get(checkpointId),
(ignored, e) -> {
// The offset commit here is needed by the external monitoring. It won't
// break Flink job's correctness if we fail to commit the offset here.
if (e != null) {
LOG.warn(
"Failed to commit consumer offsets for checkpoint {}",
Expand All @@ -124,7 +126,7 @@ public void notifyCheckpointComplete(long checkpointId) throws Exception {
"Successfully committed offsets for checkpoint {}",
checkpointId);
// If the finished topic partition has been committed, we remove it
// from the offsets of finsihed splits map.
// from the offsets of the finished splits map.
Map<TopicPartition, OffsetAndMetadata> committedPartitions =
offsetsToCommit.get(checkpointId);
offsetsOfFinishedSplits
Expand Down

0 comments on commit b5b9682

Please sign in to comment.