Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65411

connection leak

XMLWordPrintable

      seeing this periodically in the logs

       2021-04-20 18:10:43.697+0000 [id=548] WARNING o.internal.platform.Platform#log: A connection to https://k8s-url-redacted/ 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);
      
      
      java.lang.Throwable: response.body().close() at okhttp3.internal.platform.Platform.getStackTraceForCloseable(Platform.java:148) at okhttp3.RealCall.captureCallStackTrace(RealCall.java:116) at okhttp3.RealCall.enqueue(RealCall.java:125) at okhttp3.internal.ws.RealWebSocket.connect(RealWebSocket.java:193) at okhttp3.OkHttpClient.newWebSocket(OkHttpClient.java:435) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.runWatch(WatchConnectionManager.java:156) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.<init>(WatchConnectionManager.java:102) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.<init>(WatchConnectionManager.java:107) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:818) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:793) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.watch(BaseOperation.java:84) at org.csanchez.jenkins.plugins.kubernetes.pod.retention.Reaper.activate(Reaper.java:138) at org.csanchez.jenkins.plugins.kubernetes.pod.retention.Reaper.onOnline(Reaper.java:98) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:712) at jenkins.slaves.DefaultJnlpSlaveReceiver.afterChannel(DefaultJnlpSlaveReceiver.java:171) at org.jenkinsci.remoting.engine.JnlpConnectionState.fire(JnlpConnectionState.java:337) at org.jenkinsci.remoting.engine.JnlpConnectionState.fireAfterChannel(JnlpConnectionState.java:428) at jenkins.agents.WebSocketAgents$Session.lambda$opened$2(WebSocketAgents.java:122) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
      

            iocanel Ioannis Canellos
            krisdevopsbot kris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: