Conversation
| this.allocatedMemoryBlock = | ||
| PipeDataNodeResourceManager.memory().forceAllocateForTabletWithRetry(0); | ||
| PipeDataNodeResourceManager.memory() | ||
| .forceAllocateForTabletWithRetry(PipeStatementInsertionEvent.class.getSimpleName(), 0); |
There was a problem hiding this comment.
Add some identifiers from the event?
There was a problem hiding this comment.
Implemented in 5c7cf74, with follow-up fixes in c0163e0. Event-owned blocks now record an assigner snapshot from the event. For EnrichedEvent, it uses coreReportMessage() and falls back to toString() when needed; the snapshot is bounded and does not retain the event object. The same handling is applied to the other event allocation sites.
…pe-memory # Conflicts: # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/PipeMemoryManager.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/tsfile/PipeTsFilePublicResource.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/payload/evolvable/batch/PipeTabletEventBatch.java
| private final Set<PipeMemoryBlock> children = | ||
| Collections.newSetFromMap(new java.util.WeakHashMap<>()); |
There was a problem hiding this comment.
Applied in 656473e. Added the java.util.WeakHashMap import and removed the fully qualified reference.
| if (type == null) { | ||
| return OTHER; | ||
| } | ||
| switch (type) { |
There was a problem hiding this comment.
Use an enhanced switch without a default branch.
There was a problem hiding this comment.
Applied in 656473e. Converted this to an exhaustive switch expression without a default branch, with NORMAL explicitly mapped to OTHER.
…pe-memory # Conflicts: # integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBDatabaseIT.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/thrift/IoTDBDataNodeReceiver.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/payload/evolvable/batch/PipeTabletEventBatch.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/InformationSchemaContentSupplierFactory.java # iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/table/InformationSchema.java # iotdb-core/relational-grammar/src/main/antlr4/org/apache/iotdb/db/relational/grammar/sql/RelationalSql.g4
Description
Named Pipe memory blocks
SHOW PIPE MEMORY and information_schema
Tests
The integration test module could not be executed locally in offline mode because several required snapshot artifacts were unavailable.
This PR has:
Key changed/added classes