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

S3Consumer uses maxMessagesPerPoll incorrectly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.15.0
    • Fix Version/s: 2.15.2, 2.16.0
    • Component/s: camel-aws
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: