gremlin.net:在Gremlin 3.4.2中线程被中止

时间:2019-06-14 08:19:04

标签: azure-cosmosdb gremlin

我正在使用Gremlin.Net 3.4.2和CosmosDb

我已经开始获得异常“线程正在中止”。与堆栈跟踪

   at Gremlin.Net.Driver.GremlinClientExtensions.<SubmitAsync>d__2.MoveNext() in /home/smallette/git/apache/tinkerpop/gremlin-dotnet/src/Gremlin.Net/Driver/GremlinClientExtensions.cs:line 98
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) in f:\dd\ndp\clr\src\BCL\system\runtime\compilerservices\AsyncMethodBuilder.cs:line 322
   at Gremlin.Net.Driver.GremlinClientExtensions.SubmitAsync(IGremlinClient gremlinClient, String requestScript, Dictionary`2 bindings)
   at MDT.MYA.GraphDataAccess.GremlinExecuter.GremlinCommandExecuter.<ExecuteGremlinCommands>d__0.MoveNext() in D:\projects\CPH.EA.MYA\Trunk\Projects\MDT.Manar.Graph.DataAccess\GremlinExecuter\GremlinCommandExecuter.cs:line 39

我在打电话

 await gremlinClient.SubmitAsync(gremlinCommand);

具有:

g.addV('assettype').
  property('id', '4dbe891c-55e7-4470-ac3f-235ffeb503d3').
  property('name','').property('serial no','').
  property('comment','').
  property('equipmentid','').
  property('type','').
  property('productgroup','').
  property('productname','').
  property('modelname','').
  property('nickname','').
  property('buildno','').
  property('imo','').
  property('designspec','').
  property('equipmenttype','twostrokeengine').
  property('markversion','').
  property('stroke','').
  property('bore','').
  property('noofcylinders','').
  property('mcrpower','').
  property('mcrspeed','') 

此命令在CosmosDB中可以正常执行。客户端被调用为:

var client = new GremlinClient(_server, new GraphSON2Reader(),
                               new GraphSON2Writer(),   
                               GremlinClient.GraphSON2MimeType);

我也一直在使用GraphSON3ReaderGraphSON3Reader得到相同的结果。

更新到最新的Gremlin.net版本后,错误立即弹出。我不知道目前如何精确地解决问题。所有建议都将适用:-);

0 个答案:

没有答案