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/06 15:04:24 UTC

[iotdb] branch DeletionFileNodeTest created (now eeb7bef3b2)

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

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


      at eeb7bef3b2 Try to fix DeletionFileNodeTest

This branch includes the following new commits:

     new eeb7bef3b2 Try to fix DeletionFileNodeTest

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: Try to fix DeletionFileNodeTest

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

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

commit eeb7bef3b2157f14896ee4c06844273634a99f14
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Apr 6 23:04:09 2022 +0800

    Try to fix DeletionFileNodeTest
---
 .../apache/iotdb/db/engine/modification/DeletionFileNodeTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 04d2bc2a65..5c273ba60f 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);
     }
   }