Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;

public abstract class TsFileInsertionDataContainer implements AutoCloseable {
Expand Down Expand Up @@ -68,14 +69,16 @@

protected Iterable<TabletInsertionEvent> tabletInsertionIterable;

protected TsFileInsertionDataContainer(

Check warning on line 72 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/container/TsFileInsertionDataContainer.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Constructor has 9 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ2uDouGGZOU-I61Lb-S&open=AZ2uDouGGZOU-I61Lb-S&pullRequest=17523
final File tsFile,
final String pipeName,
final long creationTime,
final PipePattern pattern,
final long startTime,
final long endTime,
final PipeTaskMeta pipeTaskMeta,
final EnrichedEvent sourceEvent) {
final EnrichedEvent sourceEvent,
final boolean isWithMod) {
this.pipeName = pipeName;
this.creationTime = creationTime;

Expand All @@ -93,6 +96,17 @@
PipeDataNodeResourceManager.memory()
.forceAllocateForTabletWithRetry(
IoTDBDescriptor.getInstance().getConfig().getPipeDataStructureTabletSizeInBytes());

LOGGER.info(
"TsFile {} has initialized {}, pipeName: {}, creation time: {}, pattern: {}, startTime: {}, endTime: {}, withMod: {}",

Check warning on line 101 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/container/TsFileInsertionDataContainer.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 126).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ2uDouGGZOU-I61Lb-T&open=AZ2uDouGGZOU-I61Lb-T&pullRequest=17523
tsFile,
getClass().getSimpleName(),
pipeName,
creationTime,
pattern,
startTime,
endTime,
isWithMod);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,16 @@ public TsFileInsertionQueryDataContainer(
final Map<IDeviceID, Boolean> deviceIsAlignedMap,
final boolean isWithMod)
throws IOException {
super(pipeName, creationTime, pattern, startTime, endTime, pipeTaskMeta, sourceEvent);
super(
tsFile,
pipeName,
creationTime,
pattern,
startTime,
endTime,
pipeTaskMeta,
sourceEvent,
isWithMod);

try {
currentModifications =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,16 @@ public TsFileInsertionScanDataContainer(
final EnrichedEvent sourceEvent,
final boolean isWithMod)
throws IOException {
super(pipeName, creationTime, pattern, startTime, endTime, pipeTaskMeta, sourceEvent);
super(
tsFile,
pipeName,
creationTime,
pattern,
startTime,
endTime,
pipeTaskMeta,
sourceEvent,
isWithMod);

this.startTime = startTime;
this.endTime = endTime;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<argLine/>
<awaitility.version>4.2.0</awaitility.version>
<boost.include.dir/>
<bouncycastle.version>1.81</bouncycastle.version>
<bouncycastle.version>1.84</bouncycastle.version>
<!-- This was the last version to support Java 8 -->
<caffeine.version>2.9.3</caffeine.version>
<cglib.version>3.3.0</cglib.version>
Expand Down
Loading