You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ma...@apache.org on 2023/03/29 04:04:12 UTC

[iotdb] branch master updated: Catch NPE in CompactionSchedulerTest and print its stack

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c723079e30 Catch NPE in CompactionSchedulerTest and print its stack
c723079e30 is described below

commit c723079e305e2dff2f4b5bef5a519a40e60c3719
Author: Liu Xuxin <37...@users.noreply.github.com>
AuthorDate: Wed Mar 29 12:04:06 2023 +0800

    Catch NPE in CompactionSchedulerTest and print its stack
---
 .../org/apache/iotdb/db/engine/compaction/CompactionSchedulerTest.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/src/test/java/org/apache/iotdb/db/engine/compaction/CompactionSchedulerTest.java b/server/src/test/java/org/apache/iotdb/db/engine/compaction/CompactionSchedulerTest.java
index de737cafbe..eb9b1b6452 100644
--- a/server/src/test/java/org/apache/iotdb/db/engine/compaction/CompactionSchedulerTest.java
+++ b/server/src/test/java/org/apache/iotdb/db/engine/compaction/CompactionSchedulerTest.java
@@ -1332,6 +1332,9 @@ public class CompactionSchedulerTest {
           }
         } catch (InterruptedException e) {
           e.printStackTrace();
+        } catch (NullPointerException e) {
+          e.printStackTrace();
+          fail(e.getMessage());
         }
       }
       assertEquals(100, tsFileManager.getTsFileList(true).size());