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 04:31:45 UTC
[iotdb] branch rel/0.13 updated: [IOTDB-2855] Fix DeletionFileNodeTest error (#5435) (#5439)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rel/0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.13 by this push:
new 5bcdd4d4f8 [IOTDB-2855] Fix DeletionFileNodeTest error (#5435) (#5439)
5bcdd4d4f8 is described below
commit 5bcdd4d4f83d95a7183b17c3eda04f52121a1dd8
Author: Haonan <hh...@outlook.com>
AuthorDate: Thu Apr 7 12:31:39 2022 +0800
[IOTDB-2855] Fix DeletionFileNodeTest error (#5435) (#5439)
---
.../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);
}
}