You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marat Gubaidullin (Jira)" <ji...@apache.org> on 2022/08/29 22:26:00 UTC
[jira] [Created] (CAMEL-18439) Consumer that polls commits crashed when repository has more than 100 commits
Marat Gubaidullin created CAMEL-18439:
-----------------------------------------
Summary: 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
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)