This is an automated email from the ASF dual-hosted git repository.
leesf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 6e78682 [HUDI-2000] Release file writer for merge handle #close
(#3068)
6e78682 is described below
commit 6e78682ceaa77eead10429a57c6f1d56a15fcedd
Author: yuzhaojing <[email protected]>
AuthorDate: Sun Jun 13 18:09:48 2021 +0800
[HUDI-2000] Release file writer for merge handle #close (#3068)
Co-authored-by: 喻兆靖 <[email protected]>
---
.../src/main/java/org/apache/hudi/io/HoodieMergeHandle.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
index a7602ea..cbd77c6 100644
---
a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
+++
b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
@@ -350,6 +350,7 @@ public class HoodieMergeHandle<T extends
HoodieRecordPayload, I, K, O> extends H
if (fileWriter != null) {
fileWriter.close();
+ fileWriter = null;
}
long fileSizeInBytes = FSUtils.getFileSize(fs, newFilePath);