4

在还原的数据库上执行ReadAllEventsForward时,我收到以下错误:

[PID:18628:030 2014.10.29 11:13:41.535 ERROR StorageReaderWorker ] Error during processing ReadAllEventsForward request.
System.ArgumentException: Log record at actual pos 83405 has too large length: 892612896 bytes, while limit is 16777216 bytes. Something is seriously wrong in chunk 0-0 (C:\Event Store\hydra\chunk-000000.000000).
   at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.TFChunkReadSide.TryReadForwardInternal(ReaderWorkItem workItem, Int64 actualPosition, Int32& length, LogRecord& record) in c:\BuildAgent1\work\oss\windows\releasebuilds\src\EventStore\EventStore.Core\TransactionLog\Chunks\TFChunk\TFChunkReadSide.cs:line 484
   at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.TFChunkReadSideUnscavenged.TryReadClosestForward(Int64 logicalPosition) in c:\BuildAgent1\work\oss\windows\releasebuilds\src\EventStore\EventStore.Core\TransactionLog\Chunks\TFChunk\TFChunkReadSide.cs:line 103
   at EventStore.Core.TransactionLog.Chunks.TFChunkReader.TryReadNextInternal(Int32 retries) in c:\BuildAgent1\work\oss\windows\releasebuilds\src\EventStore\EventStore.Core\TransactionLog\Chunks\TFChunkReader.cs:line 84
   at EventStore.Core.Services.Storage.ReaderIndex.ReadIndex.EventStore.Core.Services.Storage.ReaderIndex.IReadIndex.ReadAllEventsForward(TFPos pos, Int32 maxCount) in c:\BuildAgent1\work\oss\windows\releasebuilds\src\EventStore\EventStore.Core\Services\Storage\ReaderIndex\ReadIndex.cs:line 767
   at EventStore.Core.Services.Storage.StorageReaderWorker.ReadAllEventsForward(ReadAllEventsForward msg) in c:\BuildAgent1\work\oss\windows\releasebuilds\src\EventStore\EventStore.Core\Services\Storage\StorageReaderWorker.cs:line 194

该错误在命令行上以黄色显示,我从日志中检索到它。

我备份的系统正在运行,每隔几秒就有一个流接受一个事件。我使用了GetEventStore上的备份说明并仔细遵循它们。我将数据库恢复到 GetEventStore 安装的子文件夹并使用以下命令行:

"C:\Event Store\EventStore.SingleNode.exe" --db .\myDatabaseName

在命令行输出中,我看到使用的数据库是正确的。调用 GetEventStore 的代码是基于 HTTP 的 C# .NET,它正在进行重新项目,第一次调用 GetEventStore 时失败。

我错过了什么/做错了什么?

先感谢您!

4

1 回答 1

1

这是一个与硬件相关的问题,我自己也遇到过。进入一个大兔子洞试图解决 - 一件事导致另一件事。除其他外,我尝试了这个但没有奏效。最终,我放弃了,改用 Docker 镜像,自从我开始使用它以来,一切都变得非常简单。我希望我一开始就使用 Docker 映像开始我的项目。

如果您遇到此问题,请帮自己一个忙,改用 Docker 映像

于 2021-11-19T03:58:44.127 回答