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 <32435329+yuzhaoj...@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: 喻兆靖 <yuzhaoj...@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) {

Reply via email to