I have the code running as a daemon process on two servers on a shared NFS mount.
So either process can find the files and put the list of files into its own @tmparray.
Each process will then lock the files for further processing. So only one process is able to lock and process the files.
When the file is removed by the other process between the finding and the sorting I get the error.
The code continues to work, but it occasionally spits out these errors to my logs