You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/08/30 11:13:00 UTC

[jira] [Resolved] (CAMEL-18439) camel-github - Consumer that polls commits crashed when repository has more than 100 commits

     [ https://issues.apache.org/jira/browse/CAMEL-18439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-18439.
---------------------------------
    Resolution: Fixed

> camel-github - Consumer that polls commits crashed when repository has more than 100 commits
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18439
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18439
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-github
>    Affects Versions: 3.18.1
>            Reporter: Marat Gubaidullin
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.18.2, 3.19.0
>
>
> Following code:
> {code:java}
>         from("github://commit/main?" +
>                 "repoOwner=apache" +
>                 "&repoName=camel-karavan" +
>                 "&oauthToken=YOUR_TOKEN")
>                 .log("${body}");
> {code}
> Throws
> {code:java}
> java.lang.IllegalStateException: Queue full
>         at java.base/java.util.AbstractQueue.add(AbstractQueue.java:98)
>         at java.base/java.util.concurrent.ArrayBlockingQueue.add(ArrayBlockingQueue.java:326)
>         at org.apache.camel.component.github.consumer.CommitConsumer.doStart(CommitConsumer.java:80)
> {code}
> here
> https://github.com/apache/camel/blob/884c7eae744bfe8bf074751ef2863dbf6729ed0c/components/camel-github/src/main/java/org/apache/camel/component/github/consumer/CommitConsumer.java#L80
> because of queue size = 100
> {code:java}
> private final Queue<String> commitHashes = new ArrayBlockingQueue<>(100);
> {code}



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