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/07/13 10:26:08 UTC

[iotdb] branch resource_debug updated: Fxxc

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

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


The following commit(s) were added to refs/heads/resource_debug by this push:
     new b4ece45  Fxxc
b4ece45 is described below

commit b4ece459fcc9282c16580d7d423b60560fcc4530
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jul 13 18:25:33 2021 +0800

    Fxxc
---
 cli/pom.xml                                                        | 7 +++++++
 .../org/apache/iotdb/db/engine/storagegroup/TsFileResource.java    | 2 ++
 session/pom.xml                                                    | 7 +++++++
 3 files changed, 16 insertions(+)

diff --git a/cli/pom.xml b/cli/pom.xml
index 2ef5fea..6632f24 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -41,6 +41,13 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>org.apache.iotdb</groupId>
+            <artifactId>iotdb-server</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>commons-cli</groupId>
             <artifactId>commons-cli</artifactId>
         </dependency>
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 6035381..2aca0de 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
@@ -828,6 +828,8 @@ public class TsFileResource {
     if (closed) {
       try {
         serialize();
+        logger.error("serialize TsFileResource {} when updating plan Index", this);
+        System.exit(1);
       } catch (IOException e) {
         logger.error(
             "Cannot serialize TsFileResource {} when updating plan index {}-{}",
diff --git a/session/pom.xml b/session/pom.xml
index f21c5d9..32a7435 100644
--- a/session/pom.xml
+++ b/session/pom.xml
@@ -100,6 +100,13 @@
             <groupId>org.apache.iotdb</groupId>
             <artifactId>iotdb-server</artifactId>
             <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.iotdb</groupId>
+            <artifactId>iotdb-server</artifactId>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>