Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 562C219795 for ; Mon, 25 Apr 2016 18:36:13 +0000 (UTC) Received: (qmail 98210 invoked by uid 500); 25 Apr 2016 18:36:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 98095 invoked by uid 500); 25 Apr 2016 18:36:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 98070 invoked by uid 99); 25 Apr 2016 18:36:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2016 18:36:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C96482C044E for ; Mon, 25 Apr 2016 18:36:12 +0000 (UTC) Date: Mon, 25 Apr 2016 18:36:12 +0000 (UTC) From: "Raghavendra (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (VFS-599) Duplicate FileCreated events are getting fired when copying the same file over and over MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raghavendra updated VFS-599: ---------------------------- Priority: Critical (was: Major) > Duplicate FileCreated events are getting fired when copying the same file over and over > --------------------------------------------------------------------------------------- > > Key: VFS-599 > URL: https://issues.apache.org/jira/browse/VFS-599 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 2.0 > Environment: Development > Reporter: Raghavendra > Priority: Critical > Labels: DefaultFileMonitor, duplicate, fileCreated > Attachments: FilePoller.java > > > Hi Team, > We have implemented a FilePoller class which polls a particular directory and moves the files to some other directory upon receipt of the files. > It is working fine in both Windows and RHEL when we drop different files in the affected directory. However, when we copy the same file over and over it is creating duplicate "fileCreated" events and duplicate events are failing because the original event is moving the files to different directory by the time duplicate event gets fired automatically. > I have attached the Java class which is implemented. > Please check and suggest us an approach to avoid this. > Thanks, > Raghavendra -- This message was sent by Atlassian JIRA (v6.3.4#6332)