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
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?
The text was updated successfully, but these errors were encountered:
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
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.Func
2[T,TResult] action) [0x00000] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0 at LiteDB.LiteEngine.Upsert (System.String collection, System.Collections.Generic.IEnumerable
1[T] docs, LiteDB.BsonType autoId) [0x00041] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0at LiteDB.LiteCollection
1[T].Upsert (System.Collections.Generic.IEnumerable
1[T] documents) [0x00026] in <9e5fde0ddc6f45bfbe6bed2535394f2f>:0at LiteDB.LiteCollection
1[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.IMapper
2[S,T] mapper, System.Func`1[TResult] getResource, System.Boolean forceReload, System.Threading.CancellationTokenSource userCancellationSource) [0x00191] in <5588266051d74cc5b803f9e2aa29f705>:0Source: 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?
The text was updated successfully, but these errors were encountered: