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 2022/04/07 03:17:12 UTC

[iotdb] branch DeleteNoTest13 created (now cf7734a602)

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

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


      at cf7734a602 [IOTDB-2855] Fix DeletionFileNodeTest error (#5435)

This branch includes the following new commits:

     new cf7734a602 [IOTDB-2855] Fix DeletionFileNodeTest error (#5435)

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-2855] Fix DeletionFileNodeTest error (#5435)

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

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

commit cf7734a60277733332bef8fd61fb66195a0381d2
Author: Haonan <hh...@outlook.com>
AuthorDate: Thu Apr 7 11:13:54 2022 +0800

    [IOTDB-2855] Fix DeletionFileNodeTest error (#5435)
---
 .../src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java   | 2 ++
 .../apache/iotdb/db/engine/modification/DeletionFileNodeTest.java   | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java b/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index 0a35a93e2a..f60c73e85f 100644
--- a/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -266,6 +266,8 @@ public class EnvironmentUtils {
     // we do not start 9091 port in test.
     MetricConfigDescriptor.getInstance().getMetricConfig().setEnableMetric(false);
     IoTDBDescriptor.getInstance().getConfig().setAvgSeriesPointNumberThreshold(Integer.MAX_VALUE);
+    // the default wal buffer size may cause ci failed
+    IoTDBDescriptor.getInstance().getConfig().setWalBufferSize(4 * 1024 * 1024);
     if (daemon == null) {
       daemon = new IoTDB();
     }
diff --git a/server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionFileNodeTest.java b/server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionFileNodeTest.java
index 7e539a42a8..9e3ee90100 100644
--- a/server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionFileNodeTest.java
+++ b/server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionFileNodeTest.java
@@ -28,7 +28,6 @@ import org.apache.iotdb.db.engine.querycontext.ReadOnlyMemChunk;
 import org.apache.iotdb.db.engine.storagegroup.TsFileResource;
 import org.apache.iotdb.db.engine.storagegroup.VirtualStorageGroupProcessor;
 import org.apache.iotdb.db.exception.StorageEngineException;
-import org.apache.iotdb.db.exception.metadata.IllegalPathException;
 import org.apache.iotdb.db.exception.metadata.MetadataException;
 import org.apache.iotdb.db.exception.query.QueryProcessException;
 import org.apache.iotdb.db.metadata.path.PartialPath;
@@ -124,14 +123,16 @@ public class DeletionFileNodeTest {
 
   @Test
   public void testDeleteWithTimePartitionFilter()
-      throws IllegalPathException, StorageEngineException, QueryProcessException, IOException {
+      throws StorageEngineException, QueryProcessException, IOException {
     boolean prevEnablePartition = StorageEngine.isEnablePartition();
     long prevPartitionInterval = StorageEngine.getTimePartitionInterval();
     int prevConcurrentTimePartition =
         IoTDBDescriptor.getInstance().getConfig().getConcurrentWritingTimePartition();
+    int prevWalBufferSize = IoTDBDescriptor.getInstance().getConfig().getWalBufferSize();
     try {
       StorageEngine.setEnablePartition(true);
       IoTDBDescriptor.getInstance().getConfig().setConcurrentWritingTimePartition(10);
+      IoTDBDescriptor.getInstance().getConfig().setWalBufferSize(16 * 1024);
       long newPartitionInterval = 100;
       StorageEngine.setTimePartitionInterval(newPartitionInterval);
       // generate 10 time partitions
@@ -157,6 +158,7 @@ public class DeletionFileNodeTest {
       IoTDBDescriptor.getInstance()
           .getConfig()
           .setConcurrentWritingTimePartition(prevConcurrentTimePartition);
+      IoTDBDescriptor.getInstance().getConfig().setWalBufferSize(prevWalBufferSize);
     }
   }