【问题标题】:titan delete vertex is not working properly泰坦删除顶点无法正常工作
【发布时间】:2013-09-24 02:58:09
【问题描述】:

我用 HBase 设置了 Titan。

我删除了图中的所有顶点

全部删除后显示为空。

gremlin> g.V.count()
==>0

但是如果我重新登录titan,那么图中会有一堆空顶点

gremlin> g.V.count()
==>85267

我检查一个顶点的值,它是空的 gremlin> g.v(840012).map()

空顶点是什么原因?我怎样才能彻底清洁它们?

【问题讨论】:

  • 我在 cassandra 中看到了幻像顶点(早已修复),但在 hbase 中没有听说过这种行为。你用的是什么版本的泰坦? 0.3.2?
  • 是的,我使用的是 Titan 0.3.2,hbase 0.94.6-cdh4.3.0
  • 我试过 g.V.remove(); g.commit();然后我收到以下错误 13/09/19 00:51:24 错误一致键.ConsistentKeyLockTransaction: 锁过期: LockClaim [backer=com.thinkaurelius.titan.diskstorage.locking.consistentkey.ConsistentKeyLockStore@762f6f82, key=0x0-0-0 -0-0-7-182-136, col=0x0-135, expectedValue=0x128-61-16-195] (txn=com.thinkaurelius.titan.diskstorage.locking.consistentkey.ConsistentKeyLockTransaction@21811d3)
  • 你有 HBase 集群还是只有一个实例?

标签: vertex titan


【解决方案1】:

您好,我在 Titan 中遇到了与 cassendra DB 相同的问题。

这是由于在未提交的情况下关闭图表。

g = TitanFactory.open('../conf/titan-cassandra-es.properties');

// 删除节点

g.commit(); 

执行“g.commit();”在关闭图表之前。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多