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

Why transaction? #34

Open
flier268 opened this issue May 15, 2024 · 1 comment
Open

Why transaction? #34

flier268 opened this issue May 15, 2024 · 1 comment

Comments

@flier268
Copy link

flier268 commented May 15, 2024

Application: Test.exe
CoreCLR Version: 8.0.424.16909
.NET Version: 8.0.4
Description: The process was terminated due to an unhandled exception.
Exception Info: Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="LiteDB encounter an error. Details in the inner exception.", DebugException="LiteDB.Async.LiteAsyncException: LiteDB encounter an error. Details in the inner exception.")
---> LiteDB.Async.LiteAsyncException: LiteDB encounter an error. Details in the inner exception.
---> LiteDB.LiteException: Maximum number of transactions reached
at LiteDB.Engine.TransactionMonitor.GetTransaction(Boolean create, Boolean queryOnly, Boolean& isNew)
at LiteDB.Engine.LiteEngine.Query(String collection, Query query)
at LiteDB.LiteQueryable1.ToDocuments()+MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Boolean& found) at LiteDB.LiteFileStream1.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at LiteDB.LiteFileInfo1.SaveAs(String filename, Boolean overwritten) at LiteDB.LiteStorage1.Download(TFileId id, String filename, Boolean overwritten)
at LiteDB.Async.LiteStorageAsync1.<>c__DisplayClass16_0.<DownloadAsync>b__0() at LiteDB.Async.LiteDatabaseAsync.<>c__DisplayClass36_01.g__Function|0()
--- End of inner exception stack trace ---

builder.Services.AddSingleton<ILiteDatabaseAsync, LiteDatabaseAsync>(_ => new(builder.Configuration.GetConnectionString("Local")));

@flier268
Copy link
Author

Downgrade LiteDB to 5.0.17 from 5.0.19 can fix that.

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