You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/03/29 14:28:52 UTC
[jira] [Commented] (CAMEL-8540) S3Consumer uses maxMessagesPerPoll
incorrectly
[ https://issues.apache.org/jira/browse/CAMEL-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385738#comment-14385738 ]
ASF GitHub Bot commented on CAMEL-8540:
---------------------------------------
GitHub user oscerd opened a pull request:
https://github.com/apache/camel/pull/450
CAMEL 8540 S3Consumer uses maxMessagesPerPoll incorrectly
Hi,
This PR is related to:
https://issues.apache.org/jira/browse/CAMEL-8540
Thanks,
Bye,
Andrea
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/oscerd/camel camel-8540-aws-s3-consumer-maxMessagesPerPoll
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/450.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #450
----
commit b3a915c026734a8635d1d21308c70938ca7c8ea5
Author: ancosen <an...@gmail.com>
Date: 2015-03-29T12:24:57Z
Fix Camel-8540 S3Consumer uses maxMessagesPerPoll incorrectly
----
> S3Consumer uses maxMessagesPerPoll incorrectly
> ----------------------------------------------
>
> Key: CAMEL-8540
> URL: https://issues.apache.org/jira/browse/CAMEL-8540
> Project: Camel
> Issue Type: Bug
> Components: camel-aws
> Affects Versions: 2.15.0
> Reporter: Alexey Hanin
> Priority: Minor
>
> 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.
> {code:lang=java|title=S3Consumer.java}
> listObjectsRequest.setMaxKeys(maxMessagesPerPoll);
> {code}
> The consumer must set key limit only when value of {{maxMessagesPerPoll}} is greater than 0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)