【问题标题】:Titan-Cassandra graph not (immediately) saved on commit?Titan-Cassandra 图没有(立即)在提交时保存?
【发布时间】:2013-06-11 07:24:35
【问题描述】:

我正在使用 Windows 7 上的 Titan Server(使用 Cassandra)v0.3.1,并发现在写入图表时出现了一些不一致的行为。出于某种原因,新节点在提交事务后似乎“消失”了。我认为这涉及到某种缓存/延迟写入,但不确定 Titan 在幕后做了什么。

您对为什么节点在提交时似乎消失有任何想法吗?

--

这是在 Gremlin shell 中运行的一系列命令:

gremlin> g = TitanFactory.open("cassandra.local")
==>titangraph[cassandrathrift:127.0.0.1]

显示到目前为止我添加到图表中的两个节点:

gremlin> g.V
==>v[280096]
==>v[280100]

现在添加一个节点:

gremlin> g.addVertex()
==>v[360004]

新节点出现在图表中:

gremlin> g.V
==>v[280096]
==>v[280100]
==>v[360004]

现在,提交事务:

gremlin> g.commit()
==>null

...新节点消失了:

gremlin> g.V
==>v[280096]
==>v[280100]

【问题讨论】:

    标签: gremlin titan tinkerpop


    【解决方案1】:

    解决方案归结为配置问题。我已修改 cassandra.yaml 以使用 Windows 格式的文件路径,例如c:/titan-all-0.3.1/cassandra/data,但似乎这种格式混淆了 java/cassandra。

    我刚刚恢复了原始的cassandra.yaml 文件(它很聪明,可以判断出/tmpc:/tmp),现在一切似乎都正常了。

    【讨论】:

      猜你喜欢
      • 2013-04-19
      • 2015-12-28
      • 1970-01-01
      • 1970-01-01
      • 2018-12-03
      • 1970-01-01
      • 2021-01-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多