You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by vi...@apache.org on 2021/06/16 01:18:48 UTC

[hudi] branch master updated: [HUDI-2022] Release writer for append handle #close (#3087)

This is an automated email from the ASF dual-hosted git repository.

vinoyang 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 61efc6a  [HUDI-2022] Release writer for append handle #close (#3087)
61efc6a is described below

commit 61efc6af79c389ef0a77cda75e4f562ed59ef86b
Author: yuzhaojing <32...@users.noreply.github.com>
AuthorDate: Wed Jun 16 09:18:38 2021 +0800

    [HUDI-2022] Release writer for append handle #close (#3087)
    
    Co-authored-by: 喻兆靖 <yu...@bilibili.com>
---
 .../src/main/java/org/apache/hudi/io/HoodieAppendHandle.java             | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java
index 8ee4b46..64de066 100644
--- a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java
+++ b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java
@@ -389,6 +389,7 @@ public class HoodieAppendHandle<T extends HoodieRecordPayload, I, K, O> extends
       recordItr = null;
       if (writer != null) {
         writer.close();
+        writer = null;
 
         // update final size, once for all log files
         for (WriteStatus status: statuses) {