Skip to content

Reclaim idle server RPC buffers under memory pressure - #19333

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/rpc-idle-buffer-reclaim
Open

Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/rpc-idle-buffer-reclaim

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

Reclaim oversized reusable RPC buffers on idle synchronous server connections when a new allocation is denied by the configured RPC buffer memory limit. Connections with active requests remain protected, and the input/output transports for one socket share activity state.

For example, after connection A completes a large request and becomes idle, connection B can reclaim A's excess reusable capacity under memory pressure; A remains usable for later requests.

Validation

  • mvn spotless:apply -P with-integration-tests -pl iotdb-client/service-rpc,iotdb-core/node-commons -am
  • mvn clean test -pl iotdb-client/service-rpc,iotdb-core/node-commons -am -Dtest=AutoResizingBufferTest,TCompressedElasticFramedTransportTest,ThriftServerBufferReclamationTest -Dsurefire.failIfNoSpecifiedTests=false (38 tests passed)
  • The existing three-node failover scenario was not rerun.

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