You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by le...@apache.org on 2021/06/13 10:09:55 UTC

[hudi] branch master updated: [HUDI-2000] Release file writer for merge handle #close (#3068)

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 <32...@users.noreply.github.com>
AuthorDate: Sun Jun 13 18:09:48 2021 +0800

    [HUDI-2000] Release file writer for merge handle #close (#3068)
    
    Co-authored-by: 喻兆靖 <yu...@bilibili.com>
---
 .../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);