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

Claus Ibsen commented on CAMEL-16515:
-------------------------------------

Okay sounds like it should have a pluggable idempotent repository (like file 
component etc) where you can set an upper limit of entries to keep.

OOM will take a very long time as a sha is not a big object.

> camel-github component possible OOM due to only adding elements to an 
> unbuonded map
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-16515
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16515
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-github
>            Reporter: Andrea Tarocchi
>            Priority: Major
>
> I think there is a potential for OOM errors here: 
> https://github.com/apache/camel/blob/master/components/camel-github/src/main/java/org/apache/camel/component/github/consumer/CommitConsumer.java#L68
> basically each commit sha is added to an in memory list of already processed 
> commits used as an idempotent inmemory repository, but elements in the map 
> are never removed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to