Skip to content

Commit

Permalink
HOTFIX: reduce log verbosity on commit
Browse files Browse the repository at this point in the history
Author: Matthias J. Sax <[email protected]>

Reviewers: Bill Bejeck <[email protected]>, Eno Thereska <[email protected]>, Ismael Juma <[email protected]>

Closes apache#3414 from mjsax/hotfix-commit-logging
  • Loading branch information
mjsax authored and ijuma committed Jun 22, 2017
1 parent 6d2fbfc commit 4baca91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ protected void maybeCommit(final long now) {

if (commitTimeMs >= 0 && lastCommitMs + commitTimeMs < now) {

log.info("{} Committing all active tasks {} and standby tasks {} because the commit interval {}ms has elapsed by {}ms",
log.debug("{} Committing all active tasks {} and standby tasks {} because the commit interval {}ms has elapsed by {}ms",
logPrefix, activeTasks.keySet(), standbyTasks.keySet(), commitTimeMs, now - lastCommitMs);

commitAll();
Expand Down Expand Up @@ -810,7 +810,7 @@ public void apply(final StreamTask task) {
* Commit the state of a task
*/
private void commitOne(final AbstractTask task) {
log.info("{} Committing task {} {}", logPrefix, task.getClass().getSimpleName(), task.id());
log.trace("{} Committing {} {}", logPrefix, task.getClass().getSimpleName(), task.id());
try {
task.commit();
} catch (final CommitFailedException e) {
Expand Down

0 comments on commit 4baca91

Please sign in to comment.