Giter Club home page Giter Club logo

orleans.storageprovider.arango's People

Contributors

richorama avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

orleans.storageprovider.arango's Issues

Provider seem to not work for PubSubStore

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

ArangoDB.Client.ArangoServerException: invalid document type.

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()

Question: Does this storage provider automatically handle storing grain references?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.