Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 89669 invoked from network); 24 Aug 2009 05:35:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Aug 2009 05:35:53 -0000 Received: (qmail 1273 invoked by uid 500); 24 Aug 2009 05:36:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 1203 invoked by uid 500); 24 Aug 2009 05:36:12 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 1192 invoked by uid 500); 24 Aug 2009 05:36:12 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 1189 invoked by uid 99); 24 Aug 2009 05:36:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 05:36:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 05:36:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 344FF234C04C for ; Sun, 23 Aug 2009 22:35:50 -0700 (PDT) Message-ID: <1808841463.1251092150208.JavaMail.jira@brutus> Date: Sun, 23 Aug 2009 22:35:50 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1927) FileConsumer preMove setting causes filename to be left in in progress repository. In-Reply-To: <523661123.1250922155731.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53733#action_53733 ] Claus Ibsen commented on CAMEL-1927: ------------------------------------ The issue is in related when you use {{preMove}} and change the actual name of the file such as prepending {{work-}} or the likes to the file name. However if you use {{preMove}} to move the file to another directory then the name is correctly removed from the repo. > FileConsumer preMove setting causes filename to be left in in progress repository. > ---------------------------------------------------------------------------------- > > Key: CAMEL-1927 > URL: https://issues.apache.org/activemq/browse/CAMEL-1927 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.0-M3 > Reporter: Alexander Lee > Assignee: Claus Ibsen > Fix For: 2.1.0 > > > If the FileConsumer preMove setting is used, then files are picked up the first time only, as the original file name is added to the in progress repository, whereas the new file name is removed from the in progress repository (though nothing is actually removed as the new file name is not in the in progress repository). > This causes a few problems: > i) If the maxMessagePerPoll is used, then messages not processed the first time are never picked up again. > ii) If the intention is to reprocess the same file, or a new file with the same name, then it will never be picked up again after the first time. > iii) As the wrong file names are removed from the in progress repository, it results in a slow memory leak in the in progress repository. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.