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 F1B4F9261 for ; Thu, 10 Jan 2013 03:16:14 +0000 (UTC) Received: (qmail 72768 invoked by uid 500); 10 Jan 2013 03:16:14 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 72695 invoked by uid 500); 10 Jan 2013 03:16:13 -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 72538 invoked by uid 99); 10 Jan 2013 03:16:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 03:16:12 +0000 Date: Thu, 10 Jan 2013 03:16:12 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-5944) Setting extendMessageVisibility on an SQS consumer doesn't make visibilityTimeout compulsory 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-5944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13549327#comment-13549327 ] Willem Jiang commented on CAMEL-5944: ------------------------------------- Hi, It makes sense that to check if the visibilityTimeout is set when the extendMessageVisibility option is true. I will commit the patch shortly. Willem > Setting extendMessageVisibility on an SQS consumer doesn't make visibilityTimeout compulsory > -------------------------------------------------------------------------------------------- > > Key: CAMEL-5944 > URL: https://issues.apache.org/jira/browse/CAMEL-5944 > Project: Camel > Issue Type: Improvement > Components: camel-aws > Affects Versions: 2.10.3 > Reporter: Phil Cluff > Assignee: Tracy Snell > Priority: Minor > Attachments: CAMEL-5944-clean.patch > > > The ExtendMessageVisibility functionality in SQS Consumer doesn't work unless visibilityTimeout is set (SqsConsumer.java L110), but the documentation doesn't sugggest this, and it isn't enforced. > I'd suggest that we change the config/documentation such that visibilityTimeout becomes compulsory if extendMessageVisibility is set. > Another option may be to check for available timeouts in the following order: > 1) visibilityTimeout > 2) defaultVisibilityTimeout > 3) Fall back to a default value (30s?). [In this case, it would probably be sensible to log warning that we were using a default value.] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira