Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 260DF200C28 for ; Mon, 13 Mar 2017 17:09:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 248B2160B6C; Mon, 13 Mar 2017 16:09:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D737160B60 for ; Mon, 13 Mar 2017 17:09:31 +0100 (CET) Received: (qmail 62778 invoked by uid 500); 13 Mar 2017 16:09:30 -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 62764 invoked by uid 99); 13 Mar 2017 16:09:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 16:09:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BAB40C247D for ; Mon, 13 Mar 2017 16:09:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kcHQ6ikpqzxN for ; Mon, 13 Mar 2017 16:09:28 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1E8E55FCF0 for ; Mon, 13 Mar 2017 16:09:28 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id t189so43866349wmt.1 for ; Mon, 13 Mar 2017 09:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=80xhfcMLkq8os4N/9oMjk6f1E/dgXUwLg5vZAg3Sg1I=; b=HtY4P5y/bZruXR69pE7PTVnE5JC7wjThj4lpY/ZI/F4yFwhZm77RxK2e3Y6MImLcKe FUb7T7/DYcosSYcgdSvts2ytoH4qeNoER3TWVVjE8YR8+h88Nu/yxRieI3UP30m/3r+2 UggMY0oFU8z+495gc5xGbeXlnTdE8mYcuGHukq6Ugv+pOJPNKmQFNO4ZOyIzAvcSaSGr vLcroqHjken+np5R73r62hUJ4ZUYGTtQ5MnP5f+PiJJVcMypU4dZbhtzine6n45k6JLw OezBig423ACzf41/NDBAJMCArhaN7W4OQ7kJIsTpof1VRXNOQdfNjLyMRaf0sP4aLEtp Kj8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=80xhfcMLkq8os4N/9oMjk6f1E/dgXUwLg5vZAg3Sg1I=; b=Rv1IgjzWNfpN2z6SmtaYSMu7bb3iuD0LYq2V6Ogu6zaZhMFcC12z1HGzOr3im1VluW WzJC70G/MJGbl4TxGWB+5GxMNFVwsXUerVFA+ft4O035NrvcFNel8jubTiGAP8Kp6arq ykARkDVIj8uHQsvLqb6oNxcB0Ep31ATqYLz9vSOZoeIio4xEWvs8XN3JcKCcFhx0C3rm tCOWXGGadFDnzEhq4i7LrTTdZP8m7P7y/jPbPLmpO72BSUwd+6GKWP9fLOhJADTymn04 j0HpktKZ7hbspCOoGVFX7/H1i72xg/hdnY4H+vOv3kE4xImGP9y+s+lDAFA39B8fbj1b WFvA== X-Gm-Message-State: AFeK/H3QwF2akv4lmUajxHd/f2eyuZyFpse7eRRpGgkdtgmPnGkIZxmQuxkkMs2mk7PIKTiXbsbVo4gYQM0h8A== X-Received: by 10.28.95.87 with SMTP id t84mr10750818wmb.35.1489421366938; Mon, 13 Mar 2017 09:09:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stephan Burkard Date: Mon, 13 Mar 2017 16:09:16 +0000 Message-ID: Subject: Re: Camel marker files ".camelLock" not deleted To: "users@camel.apache.org" Content-Type: multipart/alternative; boundary=001a1148f5c27f5ab2054a9eeff4 archived-at: Mon, 13 Mar 2017 16:09:32 -0000 --001a1148f5c27f5ab2054a9eeff4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Zoran and Claus Thanks for the suggestions. readLockDeleteOrphanLockFiles: I am on Camel 2.12, so this is currently no option. shuffle: dito I will look up the coordinator in the Camel book. This is a good reason to download the most current MEAP version :-) Regards Stephan Claus Ibsen schrieb am Mo., 13. M=C3=A4rz 2017 um 17:02 Uhr: > Hi > > You can use shuffle=3Dtrue to randomize the file order to spread the > chance of clash. > > But when having competing consumers on the same file share you can end > up with clashes. > You can use a distributed coordinator which is covered in the 2nd ed > of the Camel book in the transactional chapter. And as well in the > upcoming chapter on clustering. > > > > On Mon, Mar 13, 2017 at 3:47 PM, Stephan Burkard > wrote: > > Hi Camel riders > > > > I have a quite simple polling file consumer that runs fine on 2 > instances. > > > > from(fileEndpointUri) > > .routeId(routeId) > > .log("[FILEREADER " + routeId + "], file: ${in.header.CamelFileName}") > > .setBody(method(bomProcessor, "removeBomIfPresent")) > > .to(jmsEndpointUri); > > > > > > The fileUri options are: > > - initialDelay=3D[random-range] > > - delay=3D[configurable] > > - antFilterCaseSensitive=3Dfalse > > - antInclude=3D*.xml > > - preMove=3Dprocessing > > - delete=3Dtrue > > - moveFailed=3D../error > > > > I generate a random start delay to avoid both consumers running at the > same > > time. However sometimes they overlap and want to process the same file. > > > > In this case I see normal processing in the logfile of one instance and > an > > error in the log of the other instance. So it works perfectly. With one > > small flaw: the marker files of Camel (whatever.camelLock) are not > deleted. > > That makes the operation guys nervous. > > > > Can I do something so that these marker files are deleted? Is this kind > of > > a misconfiguration of my file endpoint? > > > > Thanks a lot > > Stephan > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 > --001a1148f5c27f5ab2054a9eeff4--