camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Netherton (JIRA)" <>
Subject [jira] [Created] (CAMEL-11020) Camel Kubernetes consumers do not close watchers
Date Wed, 15 Mar 2017 17:04:41 GMT
James Netherton created CAMEL-11020:

             Summary: Camel Kubernetes consumers do not close watchers
                 Key: CAMEL-11020
             Project: Camel
          Issue Type: Bug
          Components: camel-kubernetes
    Affects Versions: 2.18.3, 2.19.0
            Reporter: James Netherton

I've been experimenting with camel-kubernetes and noticed some odd behaviour after my camel
context is shut down. It seems that not everything is cleaned up and there are still some
background threads running.

I wrote a [unit test|]
that can help to replicate the problem. 

Run the test, then wait for the camel context to shut down. Afterwards, the thread will sleep
for 5 minutes. During this time, stop the Kubernetes cluster and you'll see the following
exception thrown (or something like it):

{code} closed
	at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$1.onClose(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Which indicates that the pod watcher was still active and connected to the k8s cluster, despite
camel having been shutdown. This is not ideal when Camel is run within an OSGI or JavaEE container.

This message was sent by Atlassian JIRA

View raw message