1996fanrui opened a new pull request, #29738: URL: https://github.com/apache/flink/pull/29738
## What is the purpose of the change Backport of https://github.com/apache/flink/pull/28778 to release-2.3. `requestThreadDump` built the dump on the RPC main thread of the TaskExecutor and the Dispatcher, so the actor mailbox stalled, including heartbeat replies, until the dump finished. ## Brief change log - Cherry-picked e19fd025372b0437fe9414004a528420043ba0b0 with no differences from the original. It offloads the dump to `ioExecutor` in `TaskExecutor#requestThreadDump` and `Dispatcher#requestThreadDump`. - https://github.com/apache/flink/pull/28732 (LITE/FULL thread dump modes), also under FLINK-39984, is not included: it is a new feature with a new `@PublicEvolving` enum, a config option, a REST parameter, and Web UI changes. ## Verifying this change This change added tests and can be verified as follows: - `./mvnw -pl flink-runtime -am -Pskip-webui-build -Dtest='TaskExecutorThreadDumpOffloadTest,DispatcherThreadDumpOffloadTest' -Dsurefire.failIfNoSpecifiedTests=false package` on JDK 17: `Tests run: 2, Failures: 0, Errors: 0, Skipped: 0`. - The same command with the `TaskExecutor` and `Dispatcher` changes reverted: both tests fail. - `./mvnw -q -pl flink-runtime spotless:check checkstyle:check`: passes. cc @xingsuo-zbz @Myasuka ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
