Skip to content

Commit 0a00469

Browse files
[To dev/1.3] Pipe: Fixed the issue where partial writing caused the measurement to be null and caused the memory estimator to throw NPE (#14391) (#14488)
Co-authored-by: Tian Jiang <[email protected]>
1 parent a64b844 commit 0a00469

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,9 @@ private static long sizeOfColumns(
708708
RamUsageEstimator.alignObjectSize(
709709
NUM_BYTES_ARRAY_HEADER + NUM_BYTES_OBJECT_REF * columns.length);
710710
for (int i = 0; i < columns.length; i++) {
711+
if (measurementSchemas[i] == null || measurementSchemas[i].getType() == null) {
712+
continue;
713+
}
711714
switch (measurementSchemas[i].getType()) {
712715
case INT64:
713716
case TIMESTAMP:

0 commit comments

Comments
 (0)