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

LiteDB timeout error using MonkeyCache - Database is locked for more than 00:01:00. #87

Open
kkohler2 opened this issue Aug 5, 2020 · 0 comments

Comments

@kkohler2
Copy link

kkohler2 commented Aug 5, 2020

I'm using MonkeyCache.LiteDB.Barrel for caching purposes. Once in a while I get a timeout error: Database is locked for more than 00:01:00.

Timeout. Database is locked for more than 00:01:00.
Data: System.Collections.ListDictionaryInternal
StackTrace: at LiteDB.LockService.Write () [0x00076] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0
at LiteDB.LiteEngine.Transaction[T] (System.String collection, System.Boolean addIfNotExists, System.Func2[T,TResult] action) [0x00000] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0 at LiteDB.LiteEngine.Upsert (System.String collection, System.Collections.Generic.IEnumerable1[T] docs, LiteDB.BsonType autoId) [0x00041] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0
at LiteDB.LiteCollection1[T].Upsert (System.Collections.Generic.IEnumerable1[T] documents) [0x00026] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0
at LiteDB.LiteCollection1[T].Upsert (T document) [0x00013] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0 at MonkeyCache.LiteDB.Barrel.Add (System.String key, System.String data, System.TimeSpan expireIn, System.String eTag) [0x0002c] in <d222d8c6bcb546f788ef2830f40fbc45>:0 at MonkeyCache.LiteDB.Barrel.Add[T] (System.String key, T data, System.TimeSpan expireIn, System.String eTag, Newtonsoft.Json.JsonSerializerSettings jsonSerializationSettings) [0x00064] in <d222d8c6bcb546f788ef2830f40fbc45>:0 at MyApp.Helper.BarrelService.Add (Repository.CachePolicy policy, System.Object data) [0x00000] in BarrelService.cs:9 at MyApp.Helper.MonkeyCacheManager.GetAll[S,T] (Repository.CachePolicy policy, Repository.Interfaces.IMapper2[S,T] mapper, System.Func`1[TResult] getResource, System.Boolean forceReload, System.Threading.CancellationTokenSource userCancellationSource) [0x00191] in <5588266051d74cc5b803f9e2aa29f705>:0
Source: LiteDB

I've slightly abbreviated my project's names in the call stack. My issue is on iOS in a Xamarin project.

My entire use of LiteDB is encapsulated in the MonkeyCache.LiteDB.Barrel 1.2.0-beta (MonkeyCache.LightDB assembly version 1.0.0.0). Have there been changes in 1.3.0 that would address this? Is there something I can do?

@kkohler2 kkohler2 changed the title LiteDB timeout error using Monkey LiteDB timeout error using MonkeyCache - Database is locked for more than 00:01:00. Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant