We have an internal .NET application that mirrors file directories across a network. On the client-side, we use .NET file watcher class to monitor directories.
On one of our 6 client servers, we have noticed that the integrated windows defragmenter some times triggers file watcher delete events on files when it runs a defrag job. The files either remain or get recreated in the source directory but trigger the delete event so our application deletes the files on the destination side. We have seen this several times, but only on that 1 server (never on any of the other 5).
Anyone have any thoughts or ideas why the delete events are being triggered, or any defrag settings to check to see the differences from the other servers?
Any thoughts or ideas would be appreciated.
Thanks,
EDIT: Reasons for my hypothesis:
- It's happening in the middle of the night when no one is using the servers,
- always around the same day/time (Monday around 3 am)
- defrag job kicks off and the event viewer shows the defragmentation starting right around that same time.
- This has occurred about 3-4 times in the past 2 months since we installed the software on this server.
- This software has been installed on other servers for about 6+ months and we have never seen this issue before.