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

spricoder pushed a commit to branch feature/disk-metric
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/feature/disk-metric by this 
push:
     new f918b3f17b9 Fix NPE in test
f918b3f17b9 is described below

commit f918b3f17b9129fc016f2942c601d3545a84e497
Author: spricoder <[email protected]>
AuthorDate: Fri Oct 6 22:36:17 2023 +0800

    Fix NPE in test
---
 .../utils/CompactionFileGeneratorUtils.java        | 23 +++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionFileGeneratorUtils.java
 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionFileGeneratorUtils.java
index 483bb922fa6..2195664cf91 100644
--- 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionFileGeneratorUtils.java
+++ 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionFileGeneratorUtils.java
@@ -84,15 +84,20 @@ public class CompactionFileGeneratorUtils {
     if (sequence) {
       return new TsFileResource(
           new File(
-              TestConstant.BASE_OUTPUT_PATH.concat(
-                  index
-                      + IoTDBConstant.FILE_NAME_SEPARATOR
-                      + index
-                      + IoTDBConstant.FILE_NAME_SEPARATOR
-                      + 0
-                      + IoTDBConstant.FILE_NAME_SEPARATOR
-                      + 0
-                      + ".tsfile")));
+              TestConstant.BASE_OUTPUT_PATH
+                  .concat("database")
+                  .concat(File.separator)
+                  .concat("regionId")
+                  .concat(File.separator)
+                  .concat(
+                      index
+                          + IoTDBConstant.FILE_NAME_SEPARATOR
+                          + index
+                          + IoTDBConstant.FILE_NAME_SEPARATOR
+                          + 0
+                          + IoTDBConstant.FILE_NAME_SEPARATOR
+                          + 0
+                          + ".tsfile")));
     } else {
       return new TsFileResource(
           new File(

Reply via email to