You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/01/26 02:54:30 UTC
[GitHub] [iotdb] qiaojialin commented on a change in pull request #4972: [IOTDB-2488] Cross compaction recover not work and NPE in TsfileIOWriter
qiaojialin commented on a change in pull request #4972:
URL: https://github.com/apache/iotdb/pull/4972#discussion_r792262037
##########
File path: server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
##########
@@ -357,7 +357,7 @@
private boolean enableSeqSpaceCompaction = true;
/** Only compact the unsequence files */
- private boolean enableUnseqSpaceCompaction = false;
+ private boolean enableUnseqSpaceCompaction = true;
Review comment:
change back
iotdb-engine.properties should be consistent with IoTDBConfig
##########
File path: server/src/main/java/org/apache/iotdb/db/engine/compaction/cross/rewrite/RewriteCrossSpaceCompactionSelector.java
##########
@@ -99,10 +99,12 @@ public void selectAndSubmit() {
try {
List[] mergeFiles = fileSelector.select();
if (mergeFiles.length == 0) {
- LOGGER.warn(
- "{} cannot select merge candidates under the budget {}",
- logicalStorageGroupName,
- budget);
+ if (mergeResource.getUnseqFiles().size() > 0) {
+ LOGGER.warn(
Review comment:
add javadoc: still have unseq files but cannot be selected
##########
File path: server/src/main/java/org/apache/iotdb/db/engine/compaction/task/CompactionRecoverTask.java
##########
@@ -71,7 +86,10 @@ private void recoverCrossCompaction() throws Exception {
.getCompactionRecoverTask(
logicalStorageGroupName,
virtualStorageGroupId,
- timePartition,
+ Long.parseLong(
+ timePartitionDir
+ .getPath()
+ .substring(timePartitionDir.getPath().lastIndexOf(File.separator) + 1)),
Review comment:
```suggestion
Long.parseLong(timePartitionDir.getName()),
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org