2

我无法使用 berkeleyJE 后端从 Titan DB 中删除索引。

索引的状态永远不会从 INSTALLED 变为 DISABLED。

我尝试过使用 Java 程序和 gremlin 命令。

请参阅下面我使用的 gremlin 命令,以及最后一个命令的响应中的否定结果。

知道出了什么问题吗?

谢谢,马修

     \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
gremlin> graph = TitanFactory.open('../conf/titan-berkeleyje.properties')
==>standardtitangraph[berkeleyje:/TCB/BalanceReporter/db]

gremlin> mgmt = graph.openManagement()
==>com.thinkaurelius.titan.graphdb.database.management.ManagementSystem@2b289ac9

gremlin> property = mgmt.getPropertyKey('account.reference')
==>account.reference

gremlin> index = mgmt.getGraphIndex('account.reference')
==>account.reference

gremlin> indexStatus = index.getIndexStatus(property)
==>INSTALLED

gremlin> mgmt.updateIndex(index, SchemaAction.DISABLE_INDEX)
==>com.thinkaurelius.titan.graphdb.database.management.ManagementSystem$EmptyIndexJobFuture@7bc44ce8

gremlin> mgmt.commit()
==>null

gremlin> if (graph.getOpenTransactions()) graph.tx().rollback()
==>null

gremlin> mgmt.awaitGraphIndexStatus(graph, 'account.reference').status(SchemaStatus.DISABLED).call()
==>GraphIndexStatusReport[success=false, indexName='account.reference', targetStatus=DISABLED, notConverged={account.reference=INSTALLED}, converged={}, elapsed=PT1M0.155S]
4

0 回答 0