Skip to content

Why transaction? #34

@flier268

Description

@flier268

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")));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions