Lock conflicts occur when multiple sites (with ExceptionLess.net) are deployed on a server#257
Lock conflicts occur when multiple sites (with ExceptionLess.net) are deployed on a server#257d18zj wants to merge 6 commits intoexceptionless:mainfrom
Conversation
…ontent is reduced
…nflicts that occur when multiple sites are deployed on one server.
|
It's been a long time, but I'm pretty sure it's using a cross process lock on purpose. If you have multiple clients using the same log file then you need to make sure only one of them is appending to the file at the same time. What behavior are you seeing that is causing issues? They should be retrying when they get conflicts. |
3 similar comments
|
So I do see an issue with us taking a global cross process lock based on just the class name and not the log file we are trying to write to. We should change this to use a Mutex based on the file name like this implementation: https://github.com/bhaeussermann/NLog/blob/master/src/NLog/Internal/FileAppenders/MutexMultiProcessFileAppender.cs#L76 |
|
Thanks for reporting this issue and creating a pr. I'm closing this in favor of #305 |
Mutex is a cross-process lock,Lock conflicts occur when multiple sites (with ExceptionLess.net) are deployed on a server