michaelli916 commented on a change in pull request #13459:
URL: https://github.com/apache/flink/pull/13459#discussion_r619767739
##########
File path: docs/content.zh/docs/connectors/table/filesystem.md
##########
@@ -184,24 +179,25 @@ The file sink supports file compactions, which allows
applications to have small
</tbody>
</table>
-If enabled, file compaction will merge multiple small files into larger files
based on the target file size.
-When running file compaction in production, please be aware that:
-- Only files in a single checkpoint are compacted, that is, at least the same
number of files as the number of checkpoints is generated.
-- The file before merging is invisible, so the visibility of the file may be:
checkpoint interval + compaction time.
-- If the compaction takes too long, it will backpressure the job and extend
the time period of checkpoint.
+启用该参数后,文件压缩功能会根据设定的目标文件大小,合并多个小文件到大文件。
+当在生产环境使用文件压缩功能时,需要注意:
+- 只有检查点内部的文件才会被压缩,也就是说,至少会生成跟检查点个数一样多的文件。
+- 合并前文件是可见的,所以文件的可见性是:检查点间隔 + 压缩时长。
+- 如果压缩花费的时间很长,会对作业产生背压,延长检查点所需时间。
Review comment:
好的。
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]