oscerd opened a new pull request, #26000: URL: https://github.com/apache/camel/pull/26000
## Issue [CAMEL-24544](https://issues.apache.org/jira/browse/CAMEL-24544) ## Problem `KServeEndpoint` and `TensorFlowServingEndpoint` shut the gRPC channel down unconditionally: ```java public void doStop() throws Exception { super.doStop(); channel.shutdown(); } ``` The channel is created in `doInit()`. If `doInit()` fails before assigning it (bad `target`, credentials error), the field is still `null`, so `doStop()` throws a `NullPointerException` that masks the original startup failure. ## Fix Guard the shutdown with `if (channel != null)` and add a bounded `awaitTermination(5, SECONDS)` for a clean close. ## Testing - New `KServeEndpointDoStopTest` and `TensorFlowServingEndpointDoStopTest` simulate the doInit-failed state (channel null) and assert `doStop()` no longer throws. - `mvn -Psourcecheck validate` green for both modules. _Claude Code on behalf of oscerd_ -- 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]
