Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D62DA17FD7 for ; Mon, 30 Mar 2015 12:33:02 +0000 (UTC) Received: (qmail 64802 invoked by uid 500); 30 Mar 2015 12:32:53 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 64771 invoked by uid 500); 30 Mar 2015 12:32:53 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 64761 invoked by uid 99); 30 Mar 2015 12:32:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 12:32:53 +0000 Date: Mon, 30 Mar 2015 12:32:53 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-8540) S3Consumer uses maxMessagesPerPoll incorrectly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-8540. -------------------------------- Resolution: Fixed Fix Version/s: (was: 2.15.1) 2.15.2 Assignee: Claus Ibsen Thanks for reporting and the PR > 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 > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.15.2, 2.16.0 > > > 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)