Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68B7518196 for ; Wed, 5 Aug 2015 09:27:11 +0000 (UTC) Received: (qmail 93498 invoked by uid 500); 5 Aug 2015 09:27:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 93451 invoked by uid 500); 5 Aug 2015 09:27:06 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 93438 invoked by uid 99); 5 Aug 2015 09:27:05 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 09:27:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2E83B19B54B for ; Wed, 5 Aug 2015 09:27:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PeDu3HnD8Zuc for ; Wed, 5 Aug 2015 09:26:54 +0000 (UTC) Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 23B05205B9 for ; Wed, 5 Aug 2015 09:26:54 +0000 (UTC) Received: by igk11 with SMTP id 11so110536800igk.1 for ; Wed, 05 Aug 2015 02:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YuG9Tow3unNfZvbSgZ/PXaOn31hUHJf202sNXCMPQEk=; b=kHUzRo7N5adPNhCSaOndIgDebsi/R3951EklN4W8yWO8wFaeYFbUUWVsw+WrmydjBT a8jV4iP31kTsAcTcfLIRUI/lHnY9lZQMdOz16wgtW+Hmqge7cnXzTvUiP2yi38Zsc33F Fl9aZa/xT7i5KQcXRlNWYF75K+RRDy7FpMH+xF3smeM5QTUeawznDIhWQuKLiH4+EeoA o+YTEF0ZODN84cutT4rVnWDWtQIjpIFmEg4rznXgwMr8mwvUDg+q7YNBQoIE5t0cEsQQ ZXRFVrqds+KLxunzL6xLWnrDXf91Dv5OkBY6Eg2z9emmeDOQLL+deVhfxv8BSo0bAEqW V7mA== X-Received: by 10.50.112.229 with SMTP id it5mr9835935igb.46.1438766813520; Wed, 05 Aug 2015 02:26:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.76.78 with HTTP; Wed, 5 Aug 2015 02:26:34 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Wed, 5 Aug 2015 11:26:34 +0200 Message-ID: Subject: Re: SQS component and SEDA queue To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 How long time does it take to process the message on the seda route? eg how long time does MyProcessor take? Though I think the problem is that maybe Amazon SQS is not thread safe when one thread consumes a message, and another thread marks the message as deleted. If that is the case we need to deny handover in the delete task. On Wed, Aug 5, 2015 at 10:01 AM, Claus Ibsen wrote: > What version of Camel do you use? And have you tried to upgrade and use latest? > > On Thu, Jul 30, 2015 at 10:32 PM, bitsof info wrote: >> I have a route like this, the messages are sent to MyProcessor but are >> NOT deleted from SQS, they go invisible for 30 seconds, but then >> re-appear in SQS as available messages. >> >> from("aws-sqs://myqueue?amazonSQSClient=#myclientbean&waitTimeSeconds=20&maxMessagesPerPoll=10&visibilityTimeout=30&deleteAfterRead=true") >> .to("seda:inbound-queue?waitForTaskToComplete=Never&concurrentConsumers=1") >> .process(new MyProcessor()); >> >> >> IF I delete the SEDA route statement, it works as expected >> >> >> from("aws-sqs://myqueue?amazonSQSClient=#myclientbean&waitTimeSeconds=20&maxMessagesPerPoll=10&visibilityTimeout=30&deleteAfterRead=true") >> // COMMENT OUT AND SQS messages get deleted >> .to("seda:inbound-queue?waitForTaskToComplete=Never&concurrentConsumers=1") >> .process(new MyProcessor()); > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2nd edition: http://www.manning.com/ibsen2 -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2