JanusGraph边缘到不存在的顶点

时间:2018-02-28 06:38:26

标签: cassandra duplicates gremlin edge janusgraph

我们使用 JanusGraph 0.2.0 Apache Cassandra 3.0.9 作为后端,我们有从Titan 1.0.0升级我们的图表。最近我们开始看到太多的边缘到非存在的顶点。 JanusGraph文档讨论了这样的issues,并说它是一个临时问题,但在我们的例子中,我们看到这种情况持续数天并且在我们手动删除此边缘之前不会自动解决。 以下是一些例子:

//following vertex has 5 outward edges.
gremlin> g.V().has('msid', 62999910).outE('hie_child')
  

==> E [k82hgjm-5wxsm4w-7a6tx-5quay20] [12875591696-hie_child-> 12506931432]   ==> E [k82hhc2-5wxsm4w-7a6tx-5qub17s] [12875591696-hie_child-> 12506935528]   ==> E [k82hg5e-5wxsm4w-7a6tx-6ahfuds] [12875591696-hie_child-> 13694648464]   ==> E [k82hgxu-5wxsm4w-7a6tx-6ahtd2o] [12875591696-hie_child-> 13695279216]   ==> E [k82hhqa-5wxsm4w-7a6tx-6ejuhts] [12875591696-hie_child-> 13940555968]

//however 2 of these edges (first & third) are to non-existant vertices
gremlin>  g.V().has('msid', 62999910).outE('hie_child').inV().valueMap()
  

==> []

     

==> [createdAt:1519129694836],MSID:[63000004],insertedAt:1519129696038],cmstype:[1010],创格:[8],msname:[6],mstype:[3], artupdatedAt:1519129696038],类型:[0],mssubtype:[0],EXPDATE:[9223372036854775807],updatedAt:1519129696038]]

     

==> []

     

==> [createdAt:1519129694763],MSID:[63000003],insertedAt:1519129696038],cmstype:[1010],创格:[8],msname:[5],mstype:[3], artupdatedAt:1519129696038],类型:[0],mssubtype:[0],EXPDATE:[9223372036854775807],updatedAt:1519129696038]]

     

==> [createdAt:1519129694870],MSID:[62999944],insertedAt:1519129696038],cmstype:[1010],创格:[8],msname:[P1-曲棍球-IMG_6063],mstype: [3],artupdatedAt:1519129696038],类型:[0],mssubtype:[0],EXPDATE:[9223372036854775807],updatedAt:1519129696038]]

  1. 是否还有其他人面临这个问题,如果有,是否有任何解决方案可以阻止JanusGraph出现这样的问题?
  2. 有没有办法检测所有这些边缘并将其删除?

0 个答案:

没有答案