Skip to content

Commit

Permalink
[FLINK-9504][logging] Change the log-level of checkpoint duration to …
Browse files Browse the repository at this point in the history
…debug

This closes apache#6111.
  • Loading branch information
minwenjun authored and StefanRRichter committed Aug 6, 2018
1 parent a72d91b commit b2a9131
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public SnapshotResult<OperatorStateHandle> performOperation() throws Exception {
}

if (asynchronousSnapshots) {
LOG.info("DefaultOperatorStateBackend snapshot ({}, asynchronous part) in thread {} took {} ms.",
LOG.debug("DefaultOperatorStateBackend snapshot ({}, asynchronous part) in thread {} took {} ms.",
streamFactory, Thread.currentThread(), (System.currentTimeMillis() - asyncStartTime));
}

Expand All @@ -474,7 +474,7 @@ public SnapshotResult<OperatorStateHandle> performOperation() throws Exception {
task.run();
}

LOG.info("DefaultOperatorStateBackend snapshot ({}, synchronous part) in thread {} took {} ms.",
LOG.debug("DefaultOperatorStateBackend snapshot ({}, synchronous part) in thread {} took {} ms.",
streamFactory, Thread.currentThread(), (System.currentTimeMillis() - syncStartTime));

return task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ private class AsyncSnapshotStrategySynchronicityBehavior implements SnapshotStra

@Override
public void logOperationCompleted(CheckpointStreamFactory streamFactory, long startTime) {
LOG.info("Heap backend snapshot ({}, asynchronous part) in thread {} took {} ms.",
LOG.debug("Heap backend snapshot ({}, asynchronous part) in thread {} took {} ms.",
streamFactory, Thread.currentThread(), (System.currentTimeMillis() - startTime));
}

Expand Down Expand Up @@ -838,7 +838,7 @@ protected SnapshotResult<KeyedStateHandle> performOperation() throws Exception {

finalizeSnapshotBeforeReturnHook(task);

LOG.info("Heap backend snapshot (" + primaryStreamFactory + ", synchronous part) in thread " +
LOG.debug("Heap backend snapshot (" + primaryStreamFactory + ", synchronous part) in thread " +
Thread.currentThread() + " took " + (System.currentTimeMillis() - syncStartTime) + " ms.");

return task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1918,14 +1918,14 @@ public SnapshotResult<KeyedStateHandle> performOperation() throws Exception {

snapshotOperation.writeDBSnapshot();

LOG.info("Asynchronous RocksDB snapshot ({}, asynchronous part) in thread {} took {} ms.",
LOG.debug("Asynchronous RocksDB snapshot ({}, asynchronous part) in thread {} took {} ms.",
primaryStreamFactory, Thread.currentThread(), (System.currentTimeMillis() - startTime));

return snapshotOperation.getSnapshotResultStateHandle();
}
};

LOG.info("Asynchronous RocksDB snapshot ({}, synchronous part) in thread {} took {} ms.",
LOG.debug("Asynchronous RocksDB snapshot ({}, synchronous part) in thread {} took {} ms.",
primaryStreamFactory, Thread.currentThread(), (System.currentTimeMillis() - startTime));
return AsyncStoppableTaskWithCallback.from(ioCallable);
}
Expand Down Expand Up @@ -2363,7 +2363,7 @@ public SnapshotResult<KeyedStateHandle> performOperation() throws Exception {

writeDBSnapshot();

LOG.info("Asynchronous RocksDB snapshot ({}, asynchronous part) in thread {} took {} ms.",
LOG.debug("Asynchronous RocksDB snapshot ({}, asynchronous part) in thread {} took {} ms.",
checkpointStreamSupplier, Thread.currentThread(), (System.currentTimeMillis() - startTime));

return getSnapshotResultStateHandle();
Expand Down

0 comments on commit b2a9131

Please sign in to comment.