Closed ghost closed 6 years ago
It is not a good design (using any technology) to fetch a large file that might be modified during the fetch. The results are indeterminate.
Plus, even if you could handle it, you'd be wasting bandwidth by fetching the same data over and over again.
Is there any way where we can append some ext to file say .processing before reading and start reading, one done with reading revert back to original name. I guess we can use SmbRemoteFileTemplate rt?
But what happens then if the user wants to write while the file has a temporary name?
It would be much better to have the writer "close" the file (by giving it a new name, perhaps with a timestamp) and start a new one from time-to-time and have your code only look for "closed" files.
we have a use case, where we are reading the file from windows remote location with the following steps:
Please see this link for more details http://stackoverflow.com/questions/43389062/spring-integration-inbound-poller-breaks-when-file-gets-modified-while-reading?noredirect=1#comment74369732_43389062