Repository navigation
Conversation
(cherry picked from commit c2ed594)
Collaborator
Author
|
Initial self-review of |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Backport
Cherry-picks Apache IoTDB PR #19504 (source commit
c2ed594d84a2db0c82984f4440dfebd047c4e53b) todev/1.3.Bug scenario
A DataNode
count-point-processorworker can be using a cachedIoTDBSyncClientinsideTwoStageAggregateSender.request()when a leader change drops the Pipe task. Closing the sender may race with the in-flight RPC. Separately, a failed transport open can leave its eagerly reserved RPC buffer memory accounted.Before this change, Pipe teardown could close the transport during an active transfer, and a failed connection setup could leave RPC buffer reservations charged. After this change, shutdown rejects new requests and defers cached-client cleanup until the active request exits; failed opens release their reservations, and clients that fail session setup are closed.
Validation
mvn spotless:apply -P with-integration-tests -pl iotdb-client/service-rpc,iotdb-core/datanodepassed.AutoResizingBufferTest: 36 tests passed.TwoStageAggregateSenderTest: 2 tests passed with the default Surefire fork.mvn test-compile -DskipTestspassed for English and-P with-zh-locale.