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 B009B47DA for ; Wed, 11 May 2011 05:14:34 +0000 (UTC) Received: (qmail 51784 invoked by uid 500); 11 May 2011 05:14:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 51606 invoked by uid 500); 11 May 2011 05:14:33 -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 51597 invoked by uid 99); 11 May 2011 05:14:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 05:14:31 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 05:14:27 +0000 Received: by pwi6 with SMTP id 6so108048pwi.32 for ; Tue, 10 May 2011 22:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=1fSto2jTZUNwbB6/nYK+iXkaCIpSDwmq56Or47S8xx0=; b=ehC4Os+aAaN7PQu9fPd4oc8rbKZOJ7ZTfzCLjQL73u+QtVqxpGLV54IoLIWzewh0Bq YJ2i5wgwv2SXCijaKsqtiah2E962st/s3dRNyK0l99Am54W17mbXqSsXVQH+SdVuf7ns LWiL/OJJWZZu85+Zr02qlshGdEIaXrzU0YMAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=I8kTpsJiq5mn3sZsDbNzZjD36ZVHH1KvRZ2BVAfYA89FJc/My8LKZcHz1xsaqFzMwz Vv9NhpUlfrUTRHTd3BiuAy81DK2EqEgg1OPQDe7IuAOwbjwrH9rlNOFXENV8lg4ZAJ6y yAO3uWJw4Sm14DG+cz1kZwZS1UWAOlzj95JMo= Received: by 10.68.47.198 with SMTP id f6mr9350754pbn.511.1305090845184; Tue, 10 May 2011 22:14:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.46.67 with HTTP; Tue, 10 May 2011 22:13:45 -0700 (PDT) In-Reply-To: <1305050601287-4385211.post@n5.nabble.com> References: <1305050601287-4385211.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 11 May 2011 07:13:45 +0200 Message-ID: Subject: Re: Aggregator with shutdownRunningTask To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Tue, May 10, 2011 at 8:03 PM, cmveal wrote: > I've been trying to figure out how graceful shutdown works with aggregator > and shutdownRunningTask="CompleteAllTasks". > > If I use a completionInterval="5000", would that mean that my messages > successfully get processed given that shutdown takes longer than 5 seconds? > Would shutdownRoute="Defer" help in this case? > The shutdown task option applies to in-flight messages. If a messages arrives into the aggregator, it would not be regarded as in-flight anymore. The option may help you as the input route to the aggregator, may keep running, and thus send in messages into the aggregator. Which then may trigger completions, and cause those last messages to complete as well. The shutdown algorithm doesn't tap into the Aggregator and ask it how many partly aggregated messages does it currently keep. You can use the persistent support of the aggregator to ensure those partly aggregated messages are stored safely. > What would happen if I use completionSize=5 and I only have 4 messages? > Would these messages get processed properly prior to shutdown? > No. > -- > View this message in context: http://camel.465427.n5.nabble.com/Aggregator-with-shutdownRunningTask-tp4385211p4385211.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/