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 2021/05/11 09:59:04 UTC
[iotdb] branch rel/0.12 updated: Fix `merge` command cannot execute
compaction task bug (#3161)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 4f71b9a Fix `merge` command cannot execute compaction task bug (#3161)
4f71b9a is described below
commit 4f71b9a8bec75c311102f6253a30eab72a09f763
Author: zhanglingzhe0820 <44...@qq.com>
AuthorDate: Tue May 11 17:58:29 2021 +0800
Fix `merge` command cannot execute compaction task bug (#3161)
Co-authored-by: zhanglingzhe <su...@foxmail.com>
---
.../apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
index e0e7589..33bc6c3 100755
--- a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
@@ -220,7 +220,7 @@ public class StorageGroupProcessor {
/**
* time partition id -> version controller which assigns a version for each MemTable and
* deletion/update such that after they are persisted, the order of insertions, deletions and
- * updates can be re-determined.
+ * updates can be re-determined. Will be empty if there are not MemTables in memory.
*/
private HashMap<Long, VersionController> timePartitionIdVersionControllerMap = new HashMap<>();
/**
@@ -2073,7 +2073,7 @@ public class StorageGroupProcessor {
public void merge(boolean isFullMerge) {
writeLock();
try {
- for (long timePartitionId : timePartitionIdVersionControllerMap.keySet()) {
+ for (long timePartitionId : partitionLatestFlushedTimeForEachDevice.keySet()) {
executeCompaction(timePartitionId, isFullMerge);
}
} finally {