Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18439

camel-github - Consumer that polls commits crashed when repository has more than 100 commits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.1
    • 3.18.2, 3.19.0
    • camel-github
    • None
    • Unknown

    Description

      Following code:

              from("github://commit/main?" +
                      "repoOwner=apache" +
                      "&repoName=camel-karavan" +
                      "&oauthToken=YOUR_TOKEN")
                      .log("${body}");
      

      Throws

      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)
      

      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

      private final Queue<String> commitHashes = new ArrayBlockingQueue<>(100);
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: