Skip to content

Add pipe receiver memory protection#18090

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-receiver-memory-protection
Open

Add pipe receiver memory protection#18090
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:codex/pipe-receiver-memory-protection

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

  • Add DataNode receiver pipe memory accounting around compressed request decompression, sliced request buffering/assembly, and file-piece writes.
  • Release buffered slice memory on clear/exit/error paths and reject invalid/oversized slices before assembly.
  • Add a helper to estimate compressed request decompression size without consuming the request body.

Tests

  • mvn -pl iotdb-core/node-commons -Dtest=PipeTransferCompressedReqTest,PipeTransferSliceReqBuilderTest test
  • mvn -pl iotdb-core/datanode -am -DskipTests compile
  • mvn -pl iotdb-core/datanode -am -Dtest=IoTDBDataNodeReceiverTest -Dsurefire.failIfNoSpecifiedTests=false test

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.

1 participant