Description
I've been trying to create an operator using the quarkus-operator-sdk and see a lot of Warning about OkHttp ConnectionPool leaks. I also see problems where my operator simply stops working after a certain period of time with errors about resource age. To rule out my I tried testing the samples in this repo and see similar problems:
--/ __ / / / / _ | / _ / /// / / / __/
-/ // / // / __ |/ , / ,< / // /\ \
--___// |//|//||_//
2021-11-04 13:12:29,620 INFO [io.jav.ope.Operator] (main) Registered Controller: 'jokecontroller' for CRD: 'class io.quarkiverse.operatorsdk.samples.joke.JokeRequest' for namespace(s): [default]
2021-11-04 13:12:29,636 INFO [io.qua.ope.run.AppEventListener] (main) Quarkus Java Operator SDK extension 2.0.1-SNAPSHOT (commit: 7acc366 on branch: main) built on Thu Nov 04 12:40:31 GMT 2021
2021-11-04 13:12:29,637 INFO [io.jav.ope.Operator] (main) Operator SDK 1.9.11 (commit: 0287c0c) built on Fri Oct 29 >16:12:51 GMT 2021 starting...
2021-11-04 13:12:29,637 INFO [io.jav.ope.Operator] (main) Client version: 5.8.0
2021-11-04 13:12:30,018 INFO [io.jav.ope.Operator] (main) Server version: 1.20+
2021-11-04 13:12:30,421 INFO [io.quarkus] (main) quarkus-operator-sdk-samples 2.0.1-SNAPSHOT on JVM (powered by Quarkus 2.4.0.Final) started in 3.065s. Listening on: http://0.0.0.0:8080
2021-11-04 13:12:30,423 INFO [io.quarkus] (main) Profile prod activated.
2021-11-04 13:12:30,423 INFO [io.quarkus] (main) Installed features: [CSVGeneration, cdi, kubernetes, kubernetes-client, openshift-client, operator-sdk, rest-client, rest-client-jackson, resteasy, resteasy-jackson, smallrye-context-propagation, smallrye-health, vertx]
2021-11-04 13:13:16,688 WARN [io.fab.kub.cli.int.VersionUsageUtils] (EventHandler-jokecontroller) The client is using resource type 'jokerequests' with unstable version 'v1alpha1'
2021-11-04 13:13:17,098 WARN [io.fab.kub.cli.int.VersionUsageUtils] (EventHandler-jokecontroller) The client is using resource type 'jokes' with unstable version 'v1alpha1'
2021-11-04 13:17:29,917 WARNING [okh.OkHttpClient] (OkHttp ConnectionPool) A connection to https://10.100.0.1/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
Is there anything that can be set to manage this connection?