[ 
https://issues.apache.org/jira/browse/CAMEL-22898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053933#comment-18053933
 ] 

Sergei Skuratovich commented on CAMEL-22898:
--------------------------------------------

In case of synchronous polling there is no memory leak but when subscription is 
deleted SubscriberWrapper runnable ends with exception and route is no longer 
polls messages.

> Memory Leak in google PubSub consumer
> -------------------------------------
>
>                 Key: CAMEL-22898
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22898
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-google-pubsub
>            Reporter: Sergei Skuratovich
>            Priority: Major
>
> When a subscription is no longer exists starting a subscriber throws an 
> exception. That causes a continuous creation of a new subscriber and 
> [addition|https://github.com/apache/camel/blob/64d58324797e9f43c86710bf10412d00b7af71da/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConsumer.java#L167]
>  it to a subscriber list in a loop. The cоnsumed memory grows until it 
> reaches its limits.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to