Dream95 opened a new pull request, #25819: URL: https://github.com/apache/pulsar/pull/25819
### Motivation In process runtime mode, When the child process had exited, the stub could still be non-null, so the call continued through gRPC getFunctionStatus and could block until the 5-second deadline expired. Aligned ProcessRuntime.getFunctionStatus() with ThreadRuntime.getFunctionStatus() by checking !isAlive() before invoking gRPC. ### Modifications - In `ProcessRuntime.getFunctionStatus()`, if `!isAlive()`, complete immediately with `running=false` and populate `failureException` from the stored `deathException` when available, without invoking gRPC. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Does this pull request potentially affect one of the following parts: - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment -- 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]
