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] DIspose() won't dispose sometimes. Throws exception #2574

Open
arunprakashn opened this issue Dec 7, 2024 · 1 comment
Open

[BUG] DIspose() won't dispose sometimes. Throws exception #2574

arunprakashn opened this issue Dec 7, 2024 · 1 comment
Labels

Comments

@arunprakashn
Copy link

Version
5.0.21

Describe the bug
Does not DIspose properly sometimes.

Code to Reproduce
Unable to provide. This is a high throughput read/write but protected with "lock" statements

Expected behavior
Should Dispose properly

System.Exception: LiteDB ENSURE: discarded page must be writable
at LiteDB.Constants.ENSURE(Boolean conditional, String message)
at LiteDB.Engine.MemoryCache.DiscardPage(PageBuffer page)
at LiteDB.Engine.DiskService.DiscardDirtyPages(IEnumerable`1 pages)
at LiteDB.Engine.TransactionService.Dispose(Boolean dispose)
at LiteDB.Engine.TransactionMonitor.Dispose()
at LiteDB.Engine.LiteEngine.Dispose(Boolean disposing)
at LiteDB.Engine.LiteEngine.Dispose()
at LiteDB.LiteDatabase.Dispose(Boolean disposing)
at LiteDB.LiteDatabase.Dispose()

@arunprakashn arunprakashn changed the title [BUG] [BUG] DIspose() won't dispose sometimes. Throws exception Dec 7, 2024
@dos-ise
Copy link

dos-ise commented Jan 7, 2025

this looks like it is the same issue as this.

#2528

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

2 participants