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

S3Consumer uses maxMessagesPerPoll incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.0
    • 2.15.2, 2.16.0
    • camel-aws
    • None
    • Unknown

    Description

      S3Consumer sets the maximum number of keys to retrieve from S3 to the value of maxMessagesPerPoll property. According to documentation (http://camel.apache.org/batch-consumer.html), the limit can be disabled by setting the value to negative or zero. In case of S3Consumer, setting the maxMessagesPerPoll URI property will have and effect of always empty result.

      S3Consumer.java
      listObjectsRequest.setMaxKeys(maxMessagesPerPoll);
      

      The consumer must set key limit only when value of maxMessagesPerPoll is greater than 0.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            ahanin Alexey Hanin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: