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
Which LiteDB version/OS/.NET framework version are you using. (REQUIRED)
Latest version from master, commit 6c0886e
Describe the bug A clear and concise description of what the bug is.
Calling Rebuild() on a LiteDatabase instance results in a SynchronizationLockException.
Code to Reproduce Write a small snippet to isolate your bug and could be possible to our team test. (REQUIRED)
Expected behavior A clear and concise description of what you expected to happen.
Should rebuild the datafile without throwing an exception.
Screenshots/Stacktrace If applicable, add screenshots/stacktrace
System.Threading.SynchronizationLockException: The write lock is being released without being held.
at System.Threading.ReaderWriterLockSlim.ExitWriteLock()
at LiteDB.Engine.LockService.ExitExclusive() in /Users/jens/Documents/Projects/LiteDB/LiteDB/Engine/Services/LockService.cs:line 140
at LiteDB.Engine.LiteEngine.Rebuild(RebuildOptions options) in /Users/jens/Documents/Projects/LiteDB/LiteDB/Engine/Engine/Rebuild.cs:line 87
at LiteDB.LiteDatabase.Rebuild(RebuildOptions options) in /Users/jens/Documents/Projects/LiteDB/LiteDB/Client/Database/LiteDatabase.cs:line 273
at LiteDB.Sandbox.Program.Main(String[] args) in /Users/jens/Documents/Projects/LiteDB/LiteDB.Sandbox/Program.cs:line 23
Additional context Add any other context about the problem here.
As far as my testing goes, the bug was introduced in commit 3bda0f0 as my code snippet was still working when I was testing with commit 8c956c5
The text was updated successfully, but these errors were encountered:
I'was following the progression of PR #1560 "live". But was going to close this ticket when it got merged into master.
That being the case, I'll close this ticket as it works just fine now.
Version
Which LiteDB version/OS/.NET framework version are you using. (REQUIRED)
Latest version from master, commit 6c0886e
Describe the bug
A clear and concise description of what the bug is.
Calling
Rebuild()
on a LiteDatabase instance results in a SynchronizationLockException.Code to Reproduce
Write a small snippet to isolate your bug and could be possible to our team test. (REQUIRED)
Expected behavior
A clear and concise description of what you expected to happen.
Should rebuild the datafile without throwing an exception.
Screenshots/Stacktrace
If applicable, add screenshots/stacktrace
Additional context
Add any other context about the problem here.
As far as my testing goes, the bug was introduced in commit 3bda0f0 as my code snippet was still working when I was testing with commit 8c956c5
The text was updated successfully, but these errors were encountered: