未验证 提交 ed816e44 编写于 作者: 周沛辰 提交者: GitHub

[IOTDB-2464] simplify crossSpaceComapctionExceptionHandler (#4945)

上级 cbf91cba
......@@ -486,7 +486,7 @@ timestamp_precision=ms
# The limit of write throughput merge can reach per second
# Datatype: int
# compaction_write_throughput_mb_per_sec=8
# compaction_write_throughput_mb_per_sec=30
# The maximum session idle time. unit: ms
# Idle sessions are the ones that performs neither query or non-query operations for a period of time
......
......@@ -577,7 +577,7 @@ public class IoTDBConfig {
private long mergeIntervalSec = 0L;
/** The limit of compaction merge can reach per second */
private int compactionWriteThroughputMbPerSec = 8;
private int compactionWriteThroughputMbPerSec = 30;
/**
* How many thread will be set up to perform compaction, 10 by default. Set to 1 when less than or
......
......@@ -159,10 +159,7 @@ public class CrossSpaceCompactionExceptionHandler {
}
boolean removeAllTargetFile = true;
TsFileResourceList list =
tsFileManager.getSequenceListByTimePartition(targetTsFiles.get(0).getTimePartition());
for (TsFileResource targetTsFile : targetTsFiles) {
list.remove(targetTsFile);
if (!targetTsFile.remove()) {
LOGGER.error(
"{} [Compaction][Exception] failed to delete target tsfile {} when handling exception",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册