commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghavendra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-599) Duplicate FileCreated events are getting fired when copying the same file over and over
Date Mon, 25 Apr 2016 15:00:15 GMT

    [ https://issues.apache.org/jira/browse/VFS-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15256439#comment-15256439
] 

Raghavendra commented on VFS-599:
---------------------------------

Steps to reproduce the issue:-

1. Setup below directories:-
Windows:-
C:\\home\\tibco\\MCH\\Data\\dev\\test\\Incoming\\
C:\\home\\tibco\\MCH\\Data\\dev\\test\\Intermediate\\

Linux:-
/home/tibco/MCH/Data/dev/test/Incoming/
/home/tibco/MCH/Data/dev/test/Intermediate/

2. Try dropping the same file over and over in 'Incoming' directory.

> 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
>              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)

Mime
View raw message