Skip to content

Keep generated Pipe tablet memory accounted after source close - #19421

Merged
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-tablet-lifecycle-origin-20261126
Nov 26, 2026
Merged

jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-tablet-lifecycle-origin-20261126

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Problem

When a PipeTsFileInsertionEvent is split into generated PipeRawTabletInsertionEvent instances, a generated tablet memory block is attached to the source event block. If the source closes while a downstream consumer still retains the tablet, releasing the parent also releases the tablet block. The tablet and its Binary values remain live, but PipeMemoryManager no longer accounts for those bytes, which can allow further allocations beyond the tracked memory budget.

Change

Keep the TABLET category for generated tablets, but allocate their memory blocks independently of the source event block. Preserve the EVENT category when the source has no event memory block. The tablet reservation remains accounted until the tablet event releases it.

Validation

  • mvn spotless:apply -P with-integration-tests -pl iotdb-core/datanode — passed.
  • mvn test -pl iotdb-core/datanode -am -Dtest=PipeTsFileInsertionEventTest -Dsurefire.failIfNoSpecifiedTests=false -DforkCount=1 -DreuseForks=true — 10 tests passed.
  • git diff --check — passed.

@jt2594838
jt2594838 merged commit d365d76 into apache:master Nov 26, 2026
38 of 39 checks passed
@jt2594838
jt2594838 deleted the codex/pipe-tablet-lifecycle-origin-20261126 branch November 26, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants