yihua commented on code in PR #6602:
URL: https://github.com/apache/hudi/pull/6602#discussion_r970137636


##########
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());

Review Comment:
   After digging into the code, the start position passed in here is only used 
by `FSDataOutputStream.PositionCache` to track the current position.  So this 
is okay.



-- 
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]

Reply via email to