Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] discarded page must be writable Exception #2586

Open
sharad-emydex opened this issue Jan 30, 2025 · 0 comments
Open

[BUG] discarded page must be writable Exception #2586

sharad-emydex opened this issue Jan 30, 2025 · 0 comments
Labels

Comments

@sharad-emydex
Copy link

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

Image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant