You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/06/07 13:41:26 UTC

[iotdb] 01/01: Fix UpgradeTool write some empty pageheaders to upgraded TsFiles

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

haonan pushed a commit to branch upgradeBugv4
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b453687497ca591de3125317cdb6d5f10899055e
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Jun 7 21:39:59 2021 +0800

    Fix UpgradeTool write some empty pageheaders to upgraded TsFiles
---
 .../main/java/org/apache/iotdb/tsfile/write/chunk/ChunkWriterImpl.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ChunkWriterImpl.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ChunkWriterImpl.java
index 39e5f79..a1bfa14 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ChunkWriterImpl.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ChunkWriterImpl.java
@@ -404,6 +404,7 @@ public class ChunkWriterImpl implements IChunkWriter {
     } catch (IOException e) {
       throw new PageException(e);
     }
+    clearPageWriter();
   }
 
   /**