Exception during multiprocess concurrent access to LiteDB
See original GitHub issueDuring develop we got such exception:
Exception Information
Message: Timeout. Database is locked for more than 00:01:00 Source: LiteDB TargetSite: Void TryExec(System.Action) HelpLink: Type: LiteDB.LiteException Place: 1 Stack: at LiteDB.FileDiskService.TryExec(Action action) at LiteDB.FileDiskService.DeleteJournal() at LiteDB.TransactionService.Complete(LiteTransaction trans) at LiteDB.LiteTransaction.Commit() at LiteDB.DbEngine.WriteTransaction[T](String colName, Boolean addIfNotExists, Func
2 action) at LiteDB.DbEngine.Update(String colName, IEnumerable
1 docs) at LiteDB.LiteCollection`1.Update(BsonValue id, T document)
Single litedb file is used across 10 processes.
I’ve read that you completely updated concurrency, is this problem still possible in v3?
If such kind of concurrency isn’t task of litedb we probably could use mutex, not concurrent access to db for many processes.
One more question: when stable version of v3 would be available?
Thanks for litedb, it’s really simple and fast!
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Hi @podkolzzzin, thanks! My plans is release v3 next weekend in nuget. I need just review some code, do more unit tests and publish, After this, I will update all wiki documentation and site.
Hi @vbguyny, try use v4 version, because concurrency was re-write to work better than v3.