liyubin117 commented on a change in pull request #17517:
URL: https://github.com/apache/flink/pull/17517#discussion_r731712722
##########
File path:
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/filesystem/stream/compact/CompactOperator.java
##########
@@ -217,12 +222,17 @@ private void doCompact(String partition, List<Path>
paths) throws IOException {
doMultiFilesCompact(partition, paths, target);
}
+ long targetSize = fileSystem.getFileStatus(target).getBlockSize();
+
double costSeconds = ((double) (System.currentTimeMillis() -
startMillis)) / 1000;
LOG.info(
- "Compaction time cost is '{}S', target file is '{}', input
files are '{}'",
+ "Compaction time cost is '{}S', target file={name: '{}',
size(byte): {}}, "
+ + "input files={name: '{}', size(byte): {}}",
Review comment:
excellent idea
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]