You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
5.0.20
.NET Framework : 4.8
Litedb used within a Windows Service.
Describe the bug
I see this discarded page must be writable Exception fixed by this PR Update MemoryCache. However, we recently encountered two instances of this exception in our production environment in the last 6 months with the latest version of LiteDb.
It is totally random and there is no way to handle this exception. The service crashes and restarts again and the data is lost. The stack trace does not provide much information.
Code to Reproduce
Unable to reproduce locally, service keeps running and unexpectedly at some point we get this exception
Expected behavior
LiteDb services should be available
Screenshots/Stacktrace
Additional context
Is there any way to handle this exception or prevent the service from crashing? This service is critical for our factory operation and even few minutes downtime causes havoc in the factory and the customer has to revert to manual process. So, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
@mbdavid apologies for the tag, do you have any suggestions or workarounds? This code is in production at the moment, and customers are feeling anxious that we use open source LiteDb and haven't been able to provide them with an RCA. Attaching an investigation report which may be of some help
Version
5.0.20
.NET Framework : 4.8
Litedb used within a Windows Service.
Describe the bug
I see this discarded page must be writable Exception fixed by this PR Update MemoryCache. However, we recently encountered two instances of this exception in our production environment in the last 6 months with the latest version of LiteDb.
It is totally random and there is no way to handle this exception. The service crashes and restarts again and the data is lost. The stack trace does not provide much information.
Code to Reproduce
Unable to reproduce locally, service keeps running and unexpectedly at some point we get this exception
Expected behavior
LiteDb services should be available
Screenshots/Stacktrace
Additional context
Is there any way to handle this exception or prevent the service from crashing? This service is critical for our factory operation and even few minutes downtime causes havoc in the factory and the customer has to revert to manual process. So, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: