Skip to content
Open
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 @@ -314,9 +314,9 @@

ensureMemTable(infoForMetrics);
workMemTable.checkDataType(insertRowNode);
AlignedTVListRamCostSnapshot alignedRamCostSnapshot =
AlignedTvListRamCostSnapshot alignedRamCostSnapshot =
insertRowNode.isAligned()
? new AlignedTVListRamCostSnapshot(workMemTable, insertRowNode.getDeviceID())
? new AlignedTvListRamCostSnapshot(workMemTable, insertRowNode.getDeviceID())
: null;

long[] memIncrements;
Expand Down Expand Up @@ -392,7 +392,7 @@
pointInserted = workMemTable.insert(insertRowNode);
}
} finally {
reconcileAlignedTVListRamCost(alignedRamCostSnapshot, memIncrements[0]);
reconcileAlignedTvListRamCost(alignedRamCostSnapshot, memIncrements[0]);
}

// Update start time of this memtable
Expand Down Expand Up @@ -424,10 +424,10 @@
alignedDeviceIds.add(insertRowNode.getDeviceID());
}
}
AlignedTVListRamCostSnapshot alignedRamCostSnapshot =
AlignedTvListRamCostSnapshot alignedRamCostSnapshot =
alignedDeviceIds.isEmpty()
? null
: new AlignedTVListRamCostSnapshot(workMemTable, alignedDeviceIds);
: new AlignedTvListRamCostSnapshot(workMemTable, alignedDeviceIds);

long memControlStartTime = System.nanoTime();
if (insertRowsNode.isMixingAlignment()) {
Expand Down Expand Up @@ -524,7 +524,7 @@
}
}
} finally {
reconcileAlignedTVListRamCost(alignedRamCostSnapshot, alignedMemTableIncrement);
reconcileAlignedTvListRamCost(alignedRamCostSnapshot, alignedMemTableIncrement);
}

tsFileResource.updateProgressIndex(insertRowsNode.getProgressIndex());
Expand Down Expand Up @@ -639,6 +639,7 @@
* @param rangeList start and end index list of rows to be inserted in insertTabletPlan
* @param results result array
*/
@SuppressWarnings("java:S6541") // Keep ordered write-path state updates together.
public void insertTablet(
InsertTabletNode insertTabletNode,
List<int[]> rangeList,
Expand Down Expand Up @@ -754,7 +755,7 @@
}
}
} finally {
reconcileAlignedTVListRamCost(alignedRamCostSnapshot, memIncrements[0]);
reconcileAlignedTvListRamCost(alignedRamCostSnapshot, memIncrements[0]);
}
tsFileResource.updateProgressIndex(insertTabletNode.getProgressIndex());

Expand Down Expand Up @@ -923,7 +924,8 @@
return new long[] {memTableIncrement, textDataIncrement, chunkMetadataIncrement};
}

@SuppressWarnings("squid:S3776") // high Cognitive Complexity
// This estimator is one stateful pass over the incoming aligned rows.
@SuppressWarnings({"squid:S3776", "java:S6541"})
private long[] checkAlignedMemCostAndAddToTspInfoForRows(List<InsertRowNode> insertRowNodeList)
throws WriteProcessException {
// Fixed-size TVList structures and materialized value primitive arrays.
Expand Down Expand Up @@ -1250,6 +1252,7 @@
* when the tablet has at least one successful non-null value in that block and the working TVList
* has not already allocated its value array.
*/
@SuppressWarnings("java:S107") // Parameters mirror the tablet write representation.
private static long calculateTabletValueArrayMemCost(
AlignedWritableMemChunk alignedMemChunk,
String[] measurementIds,
Expand Down Expand Up @@ -1366,8 +1369,8 @@
&& columnCategories[index] == TsTableColumnCategory.FIELD);
}

private void reconcileAlignedTVListRamCost(
AlignedTVListRamCostSnapshot snapshot, long estimatedMemTableIncrement) {
private void reconcileAlignedTvListRamCost(
AlignedTvListRamCostSnapshot snapshot, long estimatedMemTableIncrement) {
if (snapshot == null) {
return;
}
Expand Down Expand Up @@ -1415,14 +1418,14 @@
private final Set<IDeviceID> deviceIds;
private final long ramCostBeforeWrite;

AlignedTVListRamCostSnapshot(IMemTable memTable, IDeviceID deviceId) {
AlignedTvListRamCostSnapshot(IMemTable memTable, IDeviceID deviceId) {

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dependency-check (17, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dependency-check (17, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / zh-locale-compile

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / zh-locale-compile

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, datanode)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, datanode)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, others)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, others)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Simple (17)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Simple (17)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-table-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-table-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / triple (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / triple (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-misc (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-lat...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-misc (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-lat...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-consumer (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-consumer (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-l...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-l...

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / single (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / single (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1421 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required
this.memTable = memTable;
this.deviceId = deviceId;
this.deviceIds = null;
this.ramCostBeforeWrite = getRamCost(memTable, deviceId);
}

AlignedTVListRamCostSnapshot(IMemTable memTable, Set<IDeviceID> deviceIds) {
AlignedTvListRamCostSnapshot(IMemTable memTable, Set<IDeviceID> deviceIds) {

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dependency-check (17, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dependency-check (17, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / zh-locale-compile

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / zh-locale-compile

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, datanode)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, datanode)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, others)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / unit-test (17, ubuntu-latest, others)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Simple (17)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Simple (17)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-table-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-table-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / Ubuntu

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / triple (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / triple (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-misc (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-lat...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-misc (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-lat...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-consumer (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-regression-consumer (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-l...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / subscription-tree-arch-verification (17, ScalableSingleNodeMode, ScalableSingleNodeMode, ubuntu-l...

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-enhanced (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-enhanced (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / single (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / single (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-manual (17, HighPerformanceMode, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 1)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-table-manual-basic (17, HighPerformanceMode, ubuntu-latest, 0)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required

Check failure on line 1428 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

View workflow job for this annotation

GitHub Actions / dual-tree-auto-basic (17, HighPerformanceMode, ubuntu-latest, 2)

invalid method declaration; return type required
this.memTable = memTable;
this.deviceId = null;
this.deviceIds = deviceIds;
Expand Down Expand Up @@ -1452,8 +1455,8 @@

AlignedWritableMemChunk alignedMemChunk = (AlignedWritableMemChunk) memChunk;
long ramCost = alignedMemChunk.getWorkingTVList().getRamSize();
for (AlignedTVList sortedTVList : alignedMemChunk.getSortedList()) {
ramCost += sortedTVList.getRamSize();
for (AlignedTVList sortedTvList : alignedMemChunk.getSortedList()) {
ramCost += sortedTvList.getRamSize();
}
return ramCost;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public TVList getTvListByColumnIndex(
int materializedArrayCount = materializedValueArrayCounts[columnIndex];
alignedTvList.materializedValueArrayCounts[i] = materializedArrayCount;
alignedTvList.materializedValueArrayMemCost +=
(long) materializedArrayCount * valueListArrayMemCost(dataTypeList.get(i));
materializedArrayCount * valueListArrayMemCost(dataTypeList.get(i));
}
}

Expand Down Expand Up @@ -1095,7 +1095,7 @@ private BitMap getBitMap(int columnIndex, int arrayIndex) {
columnBitMaps.add(null);
}
bitMaps.set(columnIndex, columnBitMaps);
materializedBitmapMemoryCost += (long) columnBitMaps.size() * bitmapReferenceRamCost();
materializedBitmapMemoryCost += columnBitMaps.size() * bitmapReferenceRamCost();
}

// if the bitmap in arrayIndex is null, init the bitmap
Expand Down Expand Up @@ -1138,7 +1138,7 @@ public synchronized RamInfo calculateRamSize() {
}

public synchronized long getRamSize() {
return (long) timestamps.size() * alignedTvListArrayMemCostWithoutPrimitiveArrays()
return timestamps.size() * alignedTvListArrayMemCostWithoutPrimitiveArrays()
+ materializedValueArrayMemCost
+ materializedBitmapMemoryCost;
}
Expand All @@ -1152,7 +1152,7 @@ private static long calculateBitmapRamCost(List<List<BitMap>> bitMaps) {
if (columnBitMaps == null) {
continue;
}
size += (long) columnBitMaps.size() * bitmapReferenceRamCost();
size += columnBitMaps.size() * bitmapReferenceRamCost();
for (BitMap bitMap : columnBitMaps) {
if (bitMap != null) {
size += bitMap.ramBytesUsed();
Expand Down Expand Up @@ -1229,19 +1229,6 @@ public long alignedTvListArrayMemCostWithoutPrimitiveArrays() {
+ (indices != null ? (long) PrimitiveArrayManager.ARRAY_SIZE * Integer.BYTES : 0);
}

private void refreshArrayMemCostWithoutPrimitiveArrays() {
long size = alignedTvListArrayMemCost();
if (indices != null) {
size -= (long) PrimitiveArrayManager.ARRAY_SIZE * Integer.BYTES;
}
for (TSDataType dataType : dataTypes) {
if (dataType != null) {
size -= valueListArrayMemCost(dataType);
}
}
arrayMemCostWithoutPrimitiveArraysAndIndex = size;
}

public static long alignedTvListArrayMemCostWithoutPrimitiveArrays(
TSDataType[] types, TsTableColumnCategory[] columnCategories) {
long size = alignedTvListArrayMemCost(types, columnCategories);
Expand All @@ -1255,6 +1242,19 @@ public static long alignedTvListArrayMemCostWithoutPrimitiveArrays(
return size;
}

private void refreshArrayMemCostWithoutPrimitiveArrays() {
long size = alignedTvListArrayMemCost();
if (indices != null) {
size -= (long) PrimitiveArrayManager.ARRAY_SIZE * Integer.BYTES;
}
for (TSDataType dataType : dataTypes) {
if (dataType != null) {
size -= valueListArrayMemCost(dataType);
}
}
arrayMemCostWithoutPrimitiveArraysAndIndex = size;
}

/**
* Get the single column array mem cost by give type.
*
Expand Down Expand Up @@ -2181,6 +2181,7 @@ private LazyBitMap markRowAsInvalid(
}

@Override
@SuppressWarnings("java:S6541") // The scan passes share hot-path cursor state.
public TsBlock nextBatch() {
int maxRowCountOfCurrentBatch = Math.min(rows - index, maxNumberOfPointsInPage);
TsBlockBuilder builder = new TsBlockBuilder(maxRowCountOfCurrentBatch, dataTypeList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ private static Measurement measureWrite(Scenario scenario, int iterations) {
private static void runReconciliation(AccountingTarget target, int iterations) {
long correction = 0;
for (int i = 0; i < iterations; i++) {
TsFileProcessor.AlignedTVListRamCostSnapshot snapshot =
new TsFileProcessor.AlignedTVListRamCostSnapshot(target.memTable, target.deviceId);
TsFileProcessor.AlignedTvListRamCostSnapshot snapshot =
new TsFileProcessor.AlignedTvListRamCostSnapshot(target.memTable, target.deviceId);
correction += snapshot.getMemoryCorrection(0);
}
benchmarkBlackhole = correction + iterations;
Expand Down
Loading