Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
2.0
-
None
-
Development
-
Important
Description
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