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 7DC62200C78 for ; Thu, 18 May 2017 09:40:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7C641160BC4; Thu, 18 May 2017 07:40:55 +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 BD958160BB0 for ; Thu, 18 May 2017 09:40:54 +0200 (CEST) Received: (qmail 7348 invoked by uid 500); 18 May 2017 07:40:53 -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 7336 invoked by uid 99); 18 May 2017 07:40:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2017 07:40:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B73B61AA96C for ; Thu, 18 May 2017 07:40:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.38 X-Spam-Level: X-Spam-Status: No, score=0.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=regvart.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id xJR43gDAS-5U for ; Thu, 18 May 2017 07:40:50 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 882E45FB96 for ; Thu, 18 May 2017 07:40:50 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id l18so44048666oig.2 for ; Thu, 18 May 2017 00:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=regvart.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=uDnHSHAmdixWqngaAGCbxxWyRNbzVk3z8q14KpNUL4k=; b=anxon8eqQzg0TzpPXSbI0gmKNOBd2Oc01gNDWF917pPpykbm6z4beblVok7S37Uoq4 LOXqQ0t5BKStBQTh4bGkNlM1is9agH+n/NjBVphOcbGJz7swImacUUPzo/RUod6QMSek 7kgPCACXnAFgBFV+I2TdkWiTEFmMNsf6ojlto= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=uDnHSHAmdixWqngaAGCbxxWyRNbzVk3z8q14KpNUL4k=; b=YGqdeC9hqhfcAl+ai2p6UeZezBiJ+dbfIl5aJVM0d7LlYuem5snHxDiehc0nQpUguW sCBBOfuvVmOsJ9SX+X+QRohC082aVTTLkr4WUG6IGIfceeA6eL+B6IDsDF3+kyyzanj3 deygYN3ohRTFI7lOM/L7oWUChEh3g7cjD6pJGEUcxEKOsf6AIioE/J/eEj/BUXhRVd3X xNCMize/01lfbF01hgDFSq+vuS55pWaVDqYeLv3x8KxOcRt0es8FiO75kNktTWNmILAl A6i0672vnZiS3dopKu0SeF8YqlzvdhvaB8SMZGAEiHJDaquKowL6m+R7iSbc6ZK1Ejbz JUiQ== X-Gm-Message-State: AODbwcD7XC6ZTFYOH0u6iK6m3BX6eKlMjAdc8HlqEJjuz3n4cZgLrWxo aOXvJOFrOjmoKxdeyPKoThGmet3bfjOO4Pyo6Q== X-Received: by 10.157.48.138 with SMTP id s10mr1635654otc.109.1495093249787; Thu, 18 May 2017 00:40:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.48.76 with HTTP; Thu, 18 May 2017 00:40:29 -0700 (PDT) In-Reply-To: References: From: Zoran Regvart Date: Thu, 18 May 2017 09:40:29 +0200 Message-ID: Subject: Re: Camel processes only the first 150 rows in CSV To: users@camel.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Thu, 18 May 2017 07:40:55 -0000 Hi, you have specified `noop=3Dtrue` and I guess you didn't configure `idempotent=3Dtrue` and `idempotentRepository` (if you wish to preserve the state of processing between nodes and restarts) -- that keeps the file as is on the SFTP server. Also the file might be half-consumed if you're not using `doneFileName`. It works like this: Camel notices a file on the SFTP server and starts processing it while the app that is placing the file is still writing to the file. It could be just that the app that is writing the file in the first place has a buffer, so on first buffer flush only first 150 lines are written. The best course of action is to combine `readLock` and `idempotent*` settings with `doneFileName`, i.e. the app that is writing the file to the SFTP server leaves another file (a marker file) that indicates that it's done writing. zoran zoran On Thu, May 18, 2017 at 8:58 AM, Ambika Das wrote: > Hi All, > > > I am developing a aggregator application which is supposed to consume a C= SV and generate the message. I have developed it as a Spring boot applicati= on. The problem is when I transfer a file it takes only the first 150 recor= d and processes. The file is still there in the folder. If I restart the ap= plication the whole file gets processed. > > > my code looks as follows. > > > @override > > public void configure() { > > String end point =3D "sftp://server:port/dropbox?delay=3D10000&moveFailed= =3Dfailed&noop=3Dtrue&preMove=3Ddone" > > from(endpoint).to("direct:file_Processor") > > > } > > > Regards, > > Prasad --=20 Zoran Regvart