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] LiteDB v5.1 SharedEngine SlimLock issues #1993

Open
temnava opened this issue Apr 26, 2021 · 0 comments
Open

[BUG] LiteDB v5.1 SharedEngine SlimLock issues #1993

temnava opened this issue Apr 26, 2021 · 0 comments
Labels

Comments

@temnava
Copy link

temnava commented Apr 26, 2021

Version
Which LiteDB version/OS/.NET framework version are you using. v5.1 current branch state (at 2021-04-26)

Describe the bug
LiteDB is rising issues with SlimLock.
First one:
ENSURE: current process already locked at the SharedEngine implementation, within the OpenDatabase method.

Second one:
The read lock is being released without being held.
This one occurs at LiteDB.Engine.LockService.ExtiTransaction()
followin the stack trace, it happens when the TransactionService.Finalize() is called upon disposing it within ReleaseTransaction methon in Transaction Monitor.

Code to Reproduce
This is the part of a big solution that access the litedb a lot, no simple example to reproduce

Expected behavior
No exception upon file write/read.

Screenshots/Stacktrace
image
image

Additional context
Any ideas how to work around this?
Would using the LockRecursionPolicy.SupportsRecursion help for the first issue?

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