davsclaus opened a new pull request, #23392: URL: https://github.com/apache/camel/pull/23392
## Backport of #23378 Cherry-pick of #23378 onto `camel-4.18.x`. **Original PR:** #23378 - CAMEL-23571: Ensure GooglePubsubComponent does not leave orphan channels **Original author:** @driseley **Target branch:** `camel-4.18.x` ### Original description When using the Google PubSub emulator, orphaned channels are left open by the GooglePubsubComponent that are cleaned up via garbage collection. This PR resolves this by using an InstantiatingGrpcChannelProvider instead of a FixedTransportChannelProvider and adds assertions to the tests to show that the ManagedChannelOrphanWrapper is not performing cleanup by checking the log output. ### Conflict resolution Minor conflict in `PubsubTestSupport.java`: the `camel-4.18.x` branch uses `camel-test-junit5` while `main` uses `camel-test-junit6`. Resolved by keeping the `junit5` imports and adding the new `Assertions` import. -- 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]
