Repository navigation
Retry Pipe sinks after transient resource failures - #19379
Conversation
| } | ||
| } | ||
|
|
||
| if (throwable instanceof Exception && !PipeStopStrategy.accept((Exception) throwable, null)) { |
There was a problem hiding this comment.
major iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/subtask/PipeAbstractSinkSubtask.java:110 — Resource-failure short-circuit skips handshake for connection-reset PipeConnectionException
The new block at line 110 runs before the throwable instanceof PipeConnectionException branch. A PipeConnectionException wrapping TTransportException("Connection reset"/"Broken pipe") is now classified as NETWORK_TIMEOUT, so onPipeConnectionException()/handshakeOutputPipeSink() is never called and the broken client is never re-established; the subtask only resubmits itself and keeps failing on the same dead connection. The new test testConnectionResetRetriesLocallyWhenConnectionRetryIsDisabled
…[truncated]
Fix: Evaluate the PipeConnectionException branch (handshake/reconnect) before the resource-failure short-circuit, or exclude PipeConnectionException from the new block so reconnect still happens; update the test to assert handshake is attempted.
There was a problem hiding this comment.
Thanks for the report. Fixed in 470f3958e8d9c31b951dd012d8ba264c9880088f: onFailure now attempts the PipeConnectionException handshake/reconnect before applying the transient resource-failure retry path.
The regression test now verifies that handshake() is attempted when local connection retry is disabled.
Validation passed: mvn spotless:apply -P with-integration-tests and mvn clean test -P with-integration-tests -pl iotdb-core/datanode -am -Dtest=PipeSinkSubtaskTest -Dsurefire.failIfNoSpecifiedTests=false (14 tests, 0 failures).
|
Review-comment handling round for head Validation: Reviewed SHA: The PR remains open, and the inline discussion is intentionally left unresolved. |
…) (#19401) * Add RPC auto resizing buffer memory control (#17911) * ver1 * ver2 * ver3 * ver4 * ver4 * update default config value * Disable when proportion <= 0 * fix review * disable mem-control in ITs * Replace auto_resizing_buffer_memory_proportion with datanode_memory_proportion * Add AutoResizingBuffer memory metrics * Fix it (cherry picked from commit 1073715) * Fix RPC buffer memory control activation (#18194) Avoid activating DataNode RPC buffer memory control during configuration loading, and bind auto-resizing buffers to the memory account used for their allocation. (cherry picked from commit 0d3304a) * Retry Pipe sinks after transient resource failures (#19379) * Retry Pipe sinks after transient resource failures * Restore Pipe sink handshake on connection reset (cherry picked from commit dbbe38a) --------- Co-authored-by: Jiang Tian <jt2594838@163.com>
Motivation
Transient resource failures during Pipe transfers can be wrapped by connector exceptions and treated as permanent sink failures. This can stop a Pipe instead of retrying, including when an asynchronous sink reaches its forced retry threshold.
Changes
Verification
Spotless passed. The targeted Maven run passed 55 tests with no failures, errors, or skips.