GSA PI lock mechanism while deduplicating files
AliTab
https://gsaserlists.com
It seems that GSA PI is not using a locking mechanism when it's deduplicating. So, when my own code wants to access the same files that are being deduplicated at the same time, PI will crash. Can you please check this and let me know where I can find the lock file to make my own code respect PI and avoid writing to the same file when it's being processed?
Thanks a lot!
Comments
I'm reopening this thread once more to address a persistent issue. If a .lock file is not created alongside the file when other processes are reading and writing in the same folder, problems will still arise. Writing to a .tmp file is indeed the best option but still makes issues. During the process of deduplication for a file, a .lock file should be created next to it. This indicates to other processes that the file is currently being used by PI. Once deduplication is complete, the lock can be safely released. This is what's making my PI crash every time, especially in a multi-threaded environment. Could I expect an update regarding this in GSA PI?
Thank you very much
Any update for this request?
Thank you, Sven. I'm currently testing that and will report back. Meanwhile, could you please explain the changes that have been made?
Thanks again.
https://forum.gsa-online.de/discussion/31830/parse-save-error/p1