orleanscontrib / orleans.storageprovider.arango Goto Github PK
View Code? Open in Web Editor NEW:avocado: ArangoDB Storage Provider for Microsoft Orleans
:avocado: ArangoDB Storage Provider for Microsoft Orleans
I'm mostly writing this for myself to look at.
It seems that if we use the provider subscriptions as PubSubStore then it will fail at deserialization.
I should first make sure this is not due to errors in my codebase andthen try to fix it.
As I looked quickly the storage data is a list of grains
Arango Server: 3.3.3 [win64] storage engine: rocksdb
Orleans version: 1.5.2.0 (Release).
.NET version: 4.0.30319.42000
OS version: Microsoft Windows NT 6.2.9200.0
Stacktrace:
invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
Exception = ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
[2018-02-24 18:05:20.985 GMT 4 ERROR 190001 ArangoStorageProvider 172.29.47.129:0] !!!!!!!!!! ArangoStorageProvider.WriteStateAsync()
Exc level 0: ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
Exception = Orleans.StorageProvider.Arango.ArangoStorageException: ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Orleans.Core.GrainStateStorageBridge.<WriteStateAsync>d__7.MoveNext()
[2018-02-24 18:05:21.079 GMT 14 ERROR 102203 ArangoStorageProvider 172.29.47.129:0] !!!!!!!!!! Error from storage provider during WriteState for grain Type=ni.grainClasses.DeviceGrain Pk=*grn/1DB5468E/00000000000000000000000000000000030000001db5468e-0x7FBADA0D Id=GrainReference:*grn/1DB5468E/00000000 Error=
Exc level 0: Orleans.StorageProvider.Arango.ArangoStorageException: ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Orleans.Core.GrainStateStorageBridge.<WriteStateAsync>d__7.MoveNext()
Exc level 0: Orleans.StorageProvider.Arango.ArangoStorageException: ArangoDB.Client.ArangoServerException: invalid document type. ErrorNumber: 1227 HttpStatusCode: 400
at ArangoDB.Client.BaseResultAnalyzer.ThrowIfNeeded(BaseResult baseResult)
at ArangoDB.Client.Http.HttpCommand.<RequestMergedResult>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ArangoDB.Client.Collection.ArangoCollection.<InsertAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
at Orleans.StorageProvider.Arango.ArangoStorageProvider.<WriteStateAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Orleans.Core.GrainStateStorageBridge.<WriteStateAsync>d__7.MoveNext()
Does this storage provider automatically handle storing grain references? Say I had a tree data structure in which grains could have a parent and children. Does this provider detect when a property is a grain reference and handle it accordingly, or do I manually need to handle that on Read/Write? I'm new to Orleans.NET so any help understanding this would be much appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.