From 4134f65682533927a59764fbb9d1a7ba19b867e8 Mon Sep 17 00:00:00 2001 From: luokey Date: Thu, 15 Sep 2022 15:56:10 +0800 Subject: [PATCH] [HUDI-4780] hoodie.logfile.max.size It does not take effect, causing the log file to be too large (#6602) * hoodie.logfile.max.size It does not take effect, causing the log file to be too large Co-authored-by: 854194341@qq.com (cherry picked from commit 851c6e12db9fea9e7776dfc3da2d9d6e31d2bb4e) --- .../org/apache/hudi/common/fs/SizeAwareFSDataOutputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hudi-common/src/main/java/org/apache/hudi/common/fs/SizeAwareFSDataOutputStream.java b/hudi-common/src/main/java/org/apache/hudi/common/fs/SizeAwareFSDataOutputStream.java index 6869be80d5742..361d418c2f7f9 100644 --- a/hudi-common/src/main/java/org/apache/hudi/common/fs/SizeAwareFSDataOutputStream.java +++ b/hudi-common/src/main/java/org/apache/hudi/common/fs/SizeAwareFSDataOutputStream.java @@ -44,7 +44,7 @@ public class SizeAwareFSDataOutputStream extends FSDataOutputStream { public SizeAwareFSDataOutputStream(Path path, FSDataOutputStream out, ConsistencyGuard consistencyGuard, Runnable closeCallback) throws IOException { - super(out, null); + super(out, null, out.getPos()); this.path = path; this.closeCallback = closeCallback; this.consistencyGuard = consistencyGuard;