Skip to content

Fix Pipe tablet memory resize admission limit - #18413

Merged
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-tablet-resize-limit
Aug 6, 2026
Merged

Fix Pipe tablet memory resize admission limit#18413
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-tablet-resize-limit

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Description

The Pipe tablet parser can reserve a zero-sized memory block and grow it with forceResize(). The resize path previously checked only the remaining Pipe memory, so one expansion could exceed the Tablet category hard limit. Subsequent small allocations could then be rejected.

This change checks projected category usage, including the pending resize amount, for Tablet and TsFile memory blocks before allocation. A rejected resize leaves the block and memory accounting unchanged.

The regression test covers a zero-sized Tablet block whose resize would cross the Tablet hard limit.

Verification

  • mvn spotless:apply -pl iotdb-core/datanode
  • mvn -o compile -pl iotdb-core/datanode -DskipTests -Dcheckstyle.skip=true
  • PipeMemoryManagerResizeTest compiled with the module test classpath and run via JUnitCore: 2 tests passed.

The Maven test goal exceeded the local five-minute test-compilation timeout; the GitHub Actions checks are running on the PR.

@jt2594838
jt2594838 merged commit 5be170d into apache:master Aug 6, 2026
41 checks passed
@jt2594838
jt2594838 deleted the codex/pipe-tablet-resize-limit branch August 6, 2026 11:06
Caideyipi added a commit to Caideyipi/iotdb that referenced this pull request Aug 7, 2026
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