You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/05/26 08:41:28 UTC

[iotdb] branch IOTDB-3171 created (now 345bd5f7af)

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

jackietien pushed a change to branch IOTDB-3171
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 345bd5f7af [IOTDB-3171] Fix NPE when getting modification file

This branch includes the following new commits:

     new 345bd5f7af [IOTDB-3171] Fix NPE when getting modification file

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [IOTDB-3171] Fix NPE when getting modification file

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch IOTDB-3171
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 345bd5f7afe2d9bee828636d59236f8ebe2b4a2d
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Thu May 26 16:40:42 2022 +0800

    [IOTDB-3171] Fix NPE when getting modification file
---
 .../java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
index 1a5cc07f3d..77b16f0d55 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
@@ -98,7 +98,7 @@ public class TsFileResource {
 
   private ModificationFile modFile;
 
-  private ModificationFile compactionModFile;
+  private volatile ModificationFile compactionModFile;
 
   protected volatile TsFileResourceStatus status = TsFileResourceStatus.UNCLOSED;
 
@@ -131,7 +131,7 @@ public class TsFileResource {
 
   private long ramSize;
 
-  private long tsFileSize = -1L;
+  private volatile long tsFileSize = -1L;
 
   private TsFileProcessor processor;