Good day,
When trying to store a document we sometimes get a "Attempt to allocate from reset arena without calling renew" error. Sometimes we get it consistently in a middle of a chuck of involved code, however we would get the exception on one machine and then it will work fine on another machine.
The document being stored is typically fairly big (e.g. 580KB), but we only retain the document for 24 hours. We have however also had the same exception in case where we are trying to do a Load of a very small document.
We are running on .NET Framework 4.6 using the RavenDB client version 4.0.5.
Below is the stack trace:
Unable to process affordability request: System.InvalidOperationException: Attempt to allocate from reset arena without calling renew
at Sparrow.Json.ArenaMemoryAllocator.Allocate(Int32 size)
at Sparrow.Json.JsonOperationContext.GetStream(Int32 initialSize)
at Sparrow.Json.BlittableWriter`1.ResetAndRenew()
at Sparrow.Json.BlittableJsonDocumentBuilder.Renew(String debugTag, UsageMode mode)
at Sparrow.Json.JsonOperationContext.ReadObjectInternal(Object builder, String documentId, UsageMode mode, IBlittableDocumentModifier modifier)
at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.StoreEntityInUnitOfWork(String id, Object entity, String changeVector, DynamicJsonValue metadata, ConcurrencyCheckMode forceConcurrencyCheck)
at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.StoreInternal(Object entity, String changeVector, String id, ConcurrencyCheckMode forceConcurrencyCheck)
at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.Store(Object entity)